01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. The ASF licenses this file to You
04: * under the Apache License, Version 2.0 (the "License"); you may not
05: * use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License. For additional information regarding
15: * copyright in this work, please see the NOTICE file in the top level
16: * directory of this distribution.
17: */
18: /*
19: * DisplayGroup.java
20: *
21: * Created on June 4, 2005, 1:10 PM
22: */
23:
24: package org.apache.roller.config.runtime;
25:
26: import java.util.ArrayList;
27: import java.util.List;
28:
29: /**
30: * Represents a single DisplayGroup.
31: * Each DisplayGroup may contain 0 or more PropertyDefs.
32: *
33: * @author Allen Gilliland
34: */
35: public class DisplayGroup {
36:
37: private List propertyDefs = null;
38: private String name = null;
39: private String key = null;
40:
41: public DisplayGroup() {
42: this .propertyDefs = new ArrayList();
43: }
44:
45: public DisplayGroup(List propdefs) {
46: this .propertyDefs = propdefs;
47: }
48:
49: public boolean addPropertyDef(PropertyDef prop) {
50: return this .propertyDefs.add(prop);
51: }
52:
53: public boolean removePropertyDef(PropertyDef prop) {
54: return this .propertyDefs.remove(prop);
55: }
56:
57: public String toString() {
58: return name + "," + key;
59: }
60:
61: public List getPropertyDefs() {
62: return propertyDefs;
63: }
64:
65: public void setPropertyDefs(List propertyDefs) {
66: this .propertyDefs = propertyDefs;
67: }
68:
69: public String getName() {
70: return name;
71: }
72:
73: public void setName(String name) {
74: this .name = name;
75: }
76:
77: public String getKey() {
78: return key;
79: }
80:
81: public void setKey(String key) {
82: this.key = key;
83: }
84:
85: }
|