KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > cms > gui > controlx > search > SearchConfigImpl


1 /**
2  *
3  * Magnolia and its source-code is licensed under the LGPL.
4  * You may copy, adapt, and redistribute this file for commercial or non-commercial use.
5  * When copying, adapting, or redistributing this document in keeping with the guidelines above,
6  * you are required to provide proper attribution to obinary.
7  * If you reproduce or distribute the document without making any substantive modifications to its content,
8  * please use the following attribution line:
9  *
10  * Copyright 1993-2005 obinary Ltd. (http://www.obinary.com) All rights reserved.
11  *
12  */

13 package info.magnolia.cms.gui.controlx.search;
14
15 import java.util.Collection JavaDoc;
16
17 import org.apache.commons.collections.OrderedMap;
18 import org.apache.commons.collections.map.ListOrderedMap;
19
20
21 /**
22  * @author Philipp Bracher
23  * @version $Revision: 6341 $ ($Author: philipp $)
24  */

25 public class SearchConfigImpl implements SearchConfig {
26
27     private OrderedMap controlDefinitions = new ListOrderedMap();
28
29     /**
30      * @return Returns the controls.
31      */

32     public Collection JavaDoc getControlDefinitions() {
33         return this.controlDefinitions.values();
34     }
35
36     public void addControlDefinition(SearchControlDefinition def) {
37         controlDefinitions.put(def.getName(), def);
38     }
39
40     /**
41      * @see info.magnolia.cms.gui.controlx.search.SearchConfig#getControlDefinition(java.lang.String)
42      */

43     public SearchControlDefinition getControlDefinition(String JavaDoc name) {
44         return (SearchControlDefinition) this.controlDefinitions.get(name);
45     }
46
47 }
48
Popular Tags