KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > roller > config > runtime > RuntimeConfigDefs


1 /*
2  * RuntimeConfigDefs.java
3  *
4  * Created on June 4, 2005, 1:06 PM
5  */

6
7 package org.roller.config.runtime;
8
9 import java.util.ArrayList JavaDoc;
10 import java.util.List JavaDoc;
11
12
13 /**
14  * Represents the collection of all ConfigDefs.
15  *
16  * @author Allen Gilliland
17  */

18 public class RuntimeConfigDefs {
19     
20     private List JavaDoc configDefs = null;
21     
22     
23     public RuntimeConfigDefs() {
24         this.configDefs = new ArrayList JavaDoc();
25     }
26
27     public RuntimeConfigDefs(List JavaDoc configs) {
28         this.configDefs = configs;
29     }
30     
31     
32     public boolean addConfigDef(ConfigDef config) {
33         return this.configDefs.add(config);
34     }
35     
36     public boolean removeConfigDef(ConfigDef config) {
37         return this.configDefs.remove(config);
38     }
39     
40     
41     public List JavaDoc getConfigDefs() {
42         return configDefs;
43     }
44
45     public void setConfigDefs(List JavaDoc configDefs) {
46         this.configDefs = configDefs;
47     }
48     
49 }
50
Popular Tags