ActivationConfig.java

00001 
00028 package org.objectweb.jonas_ejb.deployment.xml;
00029 
00030 import org.objectweb.jonas_lib.deployment.xml.AbsElement;
00031 import org.objectweb.jonas_lib.deployment.xml.JLinkedList;
00032 
00039 public class ActivationConfig extends AbsElement  {
00040 
00044     private String description = null;
00045 
00046 
00050     private JLinkedList activationConfigPropertyList = null;
00051 
00055     public ActivationConfig() {
00056         super();
00057         activationConfigPropertyList = new JLinkedList("activation-config-property");
00058 
00059     }
00060 
00065     public String getDescription() {
00066         return description;
00067     }
00068 
00073     public void setDescription(String description) {
00074         this.description = description;
00075     }
00076 
00081     public JLinkedList getActivationConfigPropertyList() {
00082         return activationConfigPropertyList;
00083     }
00084 
00089     public void setActivationConfigPropertyList(JLinkedList activationConfigPropertyList) {
00090         this.activationConfigPropertyList = activationConfigPropertyList;
00091     }
00092 
00097     public void addActivationConfigProperty(ActivationConfigProperty
00098                                             activationConfigProperty) {
00099         activationConfigPropertyList.add(activationConfigProperty);
00100     }
00101 
00102 
00108     public String toXML(int indent) {
00109         StringBuffer sb = new StringBuffer();
00110         sb.append(indent(indent));
00111         sb.append("<activation-config>\n");
00112 
00113         indent += 2;
00114 
00115         // description
00116         sb.append(xmlElement(description, "description", indent));
00117         // activation-config-property
00118         sb.append(activationConfigPropertyList.toXML(indent));
00119         indent -= 2;
00120         sb.append(indent(indent));
00121         sb.append("</activation-config>\n");
00122 
00123         return sb.toString();
00124     }
00125 }

Generated on Tue Feb 15 15:05:47 2005 for JOnAS by  doxygen 1.3.9.1