RequiredConfigProperty.java

00001 
00027 package org.objectweb.jonas_rar.deployment.xml;
00028 
00029 import org.objectweb.jonas_lib.deployment.xml.AbsElement;
00030 import org.objectweb.jonas_lib.deployment.xml.JLinkedList;
00031 
00038 public class RequiredConfigProperty extends AbsElement  {
00039 
00043     private JLinkedList descriptionList = null;
00044 
00048     private String configPropertyName = null;
00049 
00053     public RequiredConfigProperty() {
00054         super();
00055         descriptionList = new  JLinkedList("description");
00056     }
00057 
00062     public JLinkedList getDescriptionList() {
00063         return descriptionList;
00064     }
00065 
00070     public void setDescriptionList(JLinkedList descriptionList) {
00071         this.descriptionList = descriptionList;
00072     }
00073 
00078     public void addDescription(String description) {
00079         descriptionList.add(description);
00080     }
00081 
00086     public String getConfigPropertyName() {
00087         return configPropertyName;
00088     }
00089 
00094     public void setConfigPropertyName(String configPropertyName) {
00095         this.configPropertyName = configPropertyName;
00096     }
00097 
00103     public String toXML(int indent) {
00104         StringBuffer sb = new StringBuffer();
00105         sb.append(indent(indent));
00106         sb.append("<required-config-property>\n");
00107 
00108         indent += 2;
00109 
00110         // description
00111         sb.append(descriptionList.toXML(indent));
00112         // config-property-name
00113         sb.append(xmlElement(configPropertyName, "config-property-name", indent));
00114         indent -= 2;
00115         sb.append(indent(indent));
00116         sb.append("</required-config-property>\n");
00117 
00118         return sb.toString();
00119     }
00120 }

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