1 27 package org.objectweb.jonas_rar.deployment.xml; 28 29 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 30 import org.objectweb.jonas_lib.deployment.xml.JLinkedList; 31 32 37 38 public class RequiredConfigProperty extends AbsElement { 39 40 43 private JLinkedList descriptionList = null; 44 45 48 private String configPropertyName = null; 49 50 53 public RequiredConfigProperty() { 54 super(); 55 descriptionList = new JLinkedList("description"); 56 } 57 58 62 public JLinkedList getDescriptionList() { 63 return descriptionList; 64 } 65 66 70 public void setDescriptionList(JLinkedList descriptionList) { 71 this.descriptionList = descriptionList; 72 } 73 74 78 public void addDescription(String description) { 79 descriptionList.add(description); 80 } 81 82 86 public String getConfigPropertyName() { 87 return configPropertyName; 88 } 89 90 94 public void setConfigPropertyName(String configPropertyName) { 95 this.configPropertyName = configPropertyName; 96 } 97 98 103 public String toXML(int indent) { 104 StringBuffer sb = new StringBuffer (); 105 sb.append(indent(indent)); 106 sb.append("<required-config-property>\n"); 107 108 indent += 2; 109 110 sb.append(descriptionList.toXML(indent)); 112 sb.append(xmlElement(configPropertyName, "config-property-name", indent)); 114 indent -= 2; 115 sb.append(indent(indent)); 116 sb.append("</required-config-property>\n"); 117 118 return sb.toString(); 119 } 120 } 121 | Popular Tags |