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 JonasConfigProperty extends AbsElement { 38 39 42 private String jonasConfigPropertyName = null; 43 44 47 private String jonasConfigPropertyValue = null; 48 49 50 53 public JonasConfigProperty() { 54 super(); 55 } 56 57 61 public String getJonasConfigPropertyName() { 62 return jonasConfigPropertyName; 63 } 64 65 69 public void setJonasConfigPropertyName(String jonasConfigPropertyName) { 70 this.jonasConfigPropertyName = jonasConfigPropertyName; 71 } 72 73 77 public String getJonasConfigPropertyValue() { 78 return jonasConfigPropertyValue; 79 } 80 81 85 public void setJonasConfigPropertyValue(String jonasConfigPropertyValue) { 86 this.jonasConfigPropertyValue = jonasConfigPropertyValue; 87 } 88 89 94 public String toXML(int indent) { 95 StringBuffer sb = new StringBuffer (); 96 sb.append(indent(indent)); 97 sb.append("<jonas-config-property>\n"); 98 99 indent += 2; 100 101 sb.append(xmlElement(jonasConfigPropertyName, "jonas-config-property-name", indent)); 103 sb.append(xmlElement(jonasConfigPropertyValue, "jonas-config-property-value", indent)); 105 indent -= 2; 106 sb.append(indent(indent)); 107 sb.append("</jonas-config-property>\n"); 108 109 return sb.toString(); 110 } 111 } 112 | Popular Tags |