1 27 28 package org.objectweb.jonas_ejb.deployment.xml; 29 30 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 31 import org.objectweb.jonas_lib.deployment.xml.JLinkedList; 32 33 38 39 public class ActivationConfig extends AbsElement { 40 41 44 private String description = null; 45 46 47 50 private JLinkedList activationConfigPropertyList = null; 51 52 55 public ActivationConfig() { 56 super(); 57 activationConfigPropertyList = new JLinkedList("activation-config-property"); 58 59 } 60 61 65 public String getDescription() { 66 return description; 67 } 68 69 73 public void setDescription(String description) { 74 this.description = description; 75 } 76 77 81 public JLinkedList getActivationConfigPropertyList() { 82 return activationConfigPropertyList; 83 } 84 85 89 public void setActivationConfigPropertyList(JLinkedList activationConfigPropertyList) { 90 this.activationConfigPropertyList = activationConfigPropertyList; 91 } 92 93 97 public void addActivationConfigProperty(ActivationConfigProperty 98 activationConfigProperty) { 99 activationConfigPropertyList.add(activationConfigProperty); 100 } 101 102 103 108 public String toXML(int indent) { 109 StringBuffer sb = new StringBuffer (); 110 sb.append(indent(indent)); 111 sb.append("<activation-config>\n"); 112 113 indent += 2; 114 115 sb.append(xmlElement(description, "description", indent)); 117 sb.append(activationConfigPropertyList.toXML(indent)); 119 indent -= 2; 120 sb.append(indent(indent)); 121 sb.append("</activation-config>\n"); 122 123 return sb.toString(); 124 } 125 } 126 | Popular Tags |