1 18 23 24 package org.apache.roller.config.runtime; 25 26 import java.util.ArrayList ; 27 import java.util.List ; 28 29 35 public class ConfigDef { 36 37 private List displayGroups = null; 38 private String name = null; 39 40 41 public ConfigDef() { 42 this.displayGroups = new ArrayList (); 43 } 44 45 public ConfigDef(List displaygroups) { 46 this.displayGroups = displaygroups; 47 } 48 49 50 public boolean addDisplayGroup(DisplayGroup group) { 51 return this.displayGroups.add(group); 52 } 53 54 public boolean removeDisplayGroup(DisplayGroup group) { 55 return this.displayGroups.remove(group); 56 } 57 58 59 public String toString() { 60 return name; 61 } 62 63 public List getDisplayGroups() { 64 return displayGroups; 65 } 66 67 public void setDisplayGroups(List displayGroups) { 68 this.displayGroups = displayGroups; 69 } 70 71 public String getName() { 72 return name; 73 } 74 75 public void setName(String name) { 76 this.name = name; 77 } 78 79 } 80 | Popular Tags |