1 27 package org.objectweb.jonas_rar.deployment.xml; 28 29 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 30 31 36 37 public class TmConfigProperty extends AbsElement { 38 39 42 private String tmConfigPropertyName = null; 43 44 47 private String tmConfigPropertyValue = null; 48 49 50 53 public TmConfigProperty() { 54 super(); 55 } 56 57 61 public String getTmConfigPropertyName() { 62 return tmConfigPropertyName; 63 } 64 65 69 public void setTmConfigPropertyName(String tmConfigPropertyName) { 70 this.tmConfigPropertyName = tmConfigPropertyName; 71 } 72 73 77 public String getTmConfigPropertyValue() { 78 return tmConfigPropertyValue; 79 } 80 81 85 public void setTmConfigPropertyValue(String tmConfigPropertyValue) { 86 this.tmConfigPropertyValue = tmConfigPropertyValue; 87 } 88 89 94 public String toXML(int indent) { 95 StringBuffer sb = new StringBuffer (); 96 sb.append(indent(indent)); 97 sb.append("<tm-config-property>\n"); 98 99 indent += 2; 100 101 sb.append(xmlElement(tmConfigPropertyName, "tm-config-property-name", indent)); 103 sb.append(xmlElement(tmConfigPropertyValue, "tm-config-property-value", indent)); 105 indent -= 2; 106 sb.append(indent(indent)); 107 sb.append("</tm-config-property>\n"); 108 109 return sb.toString(); 110 } 111 } 112 | Popular Tags |