1 26 27 package org.objectweb.jonas_lib.deployment.xml; 28 29 33 public class InitParam extends AbsElement { 34 35 38 private String paramName = null; 39 40 43 private String paramValue = null; 44 45 48 private String description = null; 49 50 52 56 public void setDescription(String description) { 57 this.description = description; 58 } 59 60 64 public void setParamName(String paramName) { 65 this.paramName = paramName; 66 } 67 68 69 73 public void setParamValue(String paramValue) { 74 this.paramValue = paramValue; 75 } 76 77 78 79 81 82 85 public String getParamName() { 86 return paramName; 87 } 88 89 90 93 public String getParamValue() { 94 return paramValue; 95 } 96 97 100 public String getDescription() { 101 return description; 102 } 103 104 105 110 public String toXML(int indent) { 111 StringBuffer sb = new StringBuffer (); 112 sb.append(indent(indent)); 113 sb.append("<init-param>\n"); 114 115 indent += 2; 116 117 sb.append(xmlElement(paramName, "param-name", indent)); 119 120 sb.append(xmlElement(paramValue, "param-value", indent)); 122 123 sb.append(xmlElement(description, "description", indent)); 125 126 indent -= 2; 127 sb.append(indent(indent)); 128 sb.append("</init-param>\n"); 129 130 return sb.toString(); 131 } 132 133 134 135 } 136 | Popular Tags |