KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * ConfigDef.java
3  *
4  * Created on June 4, 2005, 1:10 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  * Represents a logic grouping of runtime configuration properties.
14  * Each ConfigDef may contain 0 or more DisplayGroups.
15  *
16  * @author Allen Gilliland
17  */

18 public class ConfigDef {
19     
20     private List JavaDoc displayGroups = null;
21     private String JavaDoc name = null;
22     
23     
24     public ConfigDef() {
25         this.displayGroups = new ArrayList JavaDoc();
26     }
27
28     public ConfigDef(List JavaDoc displaygroups) {
29         this.displayGroups = displaygroups;
30     }
31
32     
33     public boolean addDisplayGroup(DisplayGroup group) {
34         return this.displayGroups.add(group);
35     }
36     
37     public boolean removeDisplayGroup(DisplayGroup group) {
38         return this.displayGroups.remove(group);
39     }
40     
41     
42     public String JavaDoc toString() {
43         return name;
44     }
45     
46     public List JavaDoc getDisplayGroups() {
47         return displayGroups;
48     }
49
50     public void setDisplayGroups(List JavaDoc displayGroups) {
51         this.displayGroups = displayGroups;
52     }
53
54     public String JavaDoc getName() {
55         return name;
56     }
57
58     public void setName(String JavaDoc name) {
59         this.name = name;
60     }
61     
62 }
63
Popular Tags