1 13 package info.magnolia.cms.gui.controlx.search; 14 15 import java.util.Collection ; 16 17 import org.apache.commons.collections.OrderedMap; 18 import org.apache.commons.collections.map.ListOrderedMap; 19 20 21 25 public class SearchConfigImpl implements SearchConfig { 26 27 private OrderedMap controlDefinitions = new ListOrderedMap(); 28 29 32 public Collection getControlDefinitions() { 33 return this.controlDefinitions.values(); 34 } 35 36 public void addControlDefinition(SearchControlDefinition def) { 37 controlDefinitions.put(def.getName(), def); 38 } 39 40 43 public SearchControlDefinition getControlDefinition(String name) { 44 return (SearchControlDefinition) this.controlDefinitions.get(name); 45 } 46 47 } 48 | Popular Tags |