1 26 27 package org.objectweb.jonas_lib.deployment.xml; 28 29 33 public class EnvEntry extends AbsElement { 34 35 38 private String description = null; 39 40 43 private String envEntryName = null; 44 45 48 private String envEntryValue = null; 49 50 53 private String envEntryType = null; 54 55 56 57 59 63 public void setDescription(String description) { 64 this.description = description; 65 } 66 67 71 public void setEnvEntryName(String envEntryName) { 72 this.envEntryName = envEntryName; 73 } 74 75 79 public void setEnvEntryValue(String envEntryValue) { 80 this.envEntryValue = envEntryValue; 81 } 82 83 87 public void setEnvEntryType(String envEntryType) { 88 this.envEntryType = envEntryType; 89 } 90 91 92 93 95 98 public String getDescription() { 99 return description; 100 } 101 102 103 106 public String getEnvEntryName() { 107 return envEntryName; 108 } 109 110 111 114 public String getEnvEntryValue() { 115 return envEntryValue; 116 } 117 118 119 122 public String getEnvEntryType() { 123 return envEntryType; 124 } 125 126 127 132 public String toXML(int indent) { 133 StringBuffer sb = new StringBuffer (); 134 sb.append(indent(indent)); 135 sb.append("<env-entry>\n"); 136 137 indent += 2; 138 139 sb.append(xmlElement(description, "description", indent)); 141 142 sb.append(xmlElement(envEntryName, "env-entry-name", indent)); 144 145 sb.append(xmlElement(envEntryValue, "env-entry-value", indent)); 147 148 sb.append(xmlElement(envEntryType, "env-entry-type", indent)); 150 151 indent -= 2; 152 sb.append(indent(indent)); 153 sb.append("</env-entry>\n"); 154 155 return sb.toString(); 156 } 157 158 } 159
| Popular Tags
|