1 27 package org.objectweb.jonas_ejb.deployment.xml; 28 29 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 30 35 36 public class JonasInitParam extends AbsElement { 37 38 41 private String paramName = null; 42 43 46 private String paramValue = null; 47 48 49 52 public JonasInitParam() { 53 super(); 54 } 55 56 60 public String getParamName() { 61 return paramName; 62 } 63 64 68 public void setParamName(String paramName) { 69 this.paramName = paramName; 70 } 71 72 76 public String getParamValue() { 77 return paramValue; 78 } 79 80 84 public void setParamValue(String paramValue) { 85 this.paramValue = paramValue; 86 } 87 88 93 public String toXML(int indent) { 94 StringBuffer sb = new StringBuffer (); 95 sb.append(indent(indent)); 96 sb.append("<jonas-init-param>\n"); 97 98 indent += 2; 99 100 sb.append(xmlElement(paramName, "param-name", indent)); 102 sb.append(xmlElement(paramValue, "param-value", indent)); 104 indent -= 2; 105 sb.append(indent(indent)); 106 sb.append("</jonas-init-param>\n"); 107 108 return sb.toString(); 109 } 110 } 111 | Popular Tags |