1 27 28 package org.objectweb.jonas_ejb.deployment.xml; 29 30 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 31 32 37 38 public class ActivationConfigProperty extends AbsElement { 39 40 43 private String activationConfigPropertyName = null; 44 45 48 private String activationConfigPropertyValue = null; 49 50 53 public ActivationConfigProperty() { 54 super(); 55 } 56 57 61 public String getActivationConfigPropertyName() { 62 return activationConfigPropertyName; 63 } 64 65 69 public void setActivationConfigPropertyName(String activationConfigPropertyName) { 70 this.activationConfigPropertyName = activationConfigPropertyName; 71 } 72 73 74 78 public String getActivationConfigPropertyValue() { 79 return activationConfigPropertyValue; 80 } 81 82 86 public void setActivationConfigPropertyValue(String activationConfigPropertyValue) { 87 this.activationConfigPropertyValue = activationConfigPropertyValue; 88 } 89 90 95 public String toXML(int indent) { 96 StringBuffer sb = new StringBuffer (); 97 sb.append(indent(indent)); 98 sb.append("<activation-config-property>\n"); 99 100 indent += 2; 101 102 sb.append(xmlElement(activationConfigPropertyName, "activation-config-property-name", indent)); 104 sb.append(xmlElement(activationConfigPropertyValue, "activation-config-property-value", indent)); 106 107 indent -= 2; 108 sb.append(indent(indent)); 109 sb.append("</activation-config-property>\n"); 110 111 return sb.toString(); 112 } 113 } 114 | Popular Tags |