1 9 package org.jboss.portal.server.metadata; 10 11 import java.util.HashMap ; 12 import java.util.Iterator ; 13 import java.util.Map ; 14 15 import org.jboss.portal.common.plugin.PluginMetaData; 16 17 21 public class PreferencesMetaData implements PluginMetaData 22 { 23 24 private Map map; 25 26 public PreferencesMetaData() 27 { 28 map = new HashMap (); 29 } 30 31 public void addPreference(PreferenceMetaData preference) 32 { 33 map.put(preference.getName(), preference); 34 } 35 36 public Iterator iterator() 37 { 38 return map.values().iterator(); 39 } 40 41 42 public PreferenceMetaData getPreference(String key) 43 { 44 return (PreferenceMetaData)map.get(key); 45 } 46 } 47 | Popular Tags |