00001
00027 package org.objectweb.jonas_lib.deployment.xml;
00028
00033 public class InitParam extends AbsElement {
00034
00038 private String paramName = null;
00039
00043 private String paramValue = null;
00044
00048 private String description = null;
00049
00050
00051
00056 public void setDescription(String description) {
00057 this.description = description;
00058 }
00059
00064 public void setParamName(String paramName) {
00065 this.paramName = paramName;
00066 }
00067
00068
00073 public void setParamValue(String paramValue) {
00074 this.paramValue = paramValue;
00075 }
00076
00077
00078
00079
00080
00081
00085 public String getParamName() {
00086 return paramName;
00087 }
00088
00089
00093 public String getParamValue() {
00094 return paramValue;
00095 }
00096
00100 public String getDescription() {
00101 return description;
00102 }
00103
00104
00110 public String toXML(int indent) {
00111 StringBuffer sb = new StringBuffer();
00112 sb.append(indent(indent));
00113 sb.append("<init-param>\n");
00114
00115 indent += 2;
00116
00117
00118 sb.append(xmlElement(paramName, "param-name", indent));
00119
00120
00121 sb.append(xmlElement(paramValue, "param-value", indent));
00122
00123
00124 sb.append(xmlElement(description, "description", indent));
00125
00126 indent -= 2;
00127 sb.append(indent(indent));
00128 sb.append("</init-param>\n");
00129
00130 return sb.toString();
00131 }
00132
00133
00134
00135 }