1 26 27 package org.objectweb.jonas_lib.deployment.xml; 28 29 33 public class ResourceEnvRef extends AbsElement { 34 35 38 private String description = null; 39 40 43 private String resourceEnvRefName = null; 44 45 48 private String resourceEnvRefType = null; 49 50 51 53 57 public void setDescription(String description) { 58 this.description = description; 59 } 60 61 62 66 public void setResourceEnvRefName(String resourceEnvRefName) { 67 this.resourceEnvRefName = resourceEnvRefName; 68 } 69 70 71 75 public void setResourceEnvRefType(String resourceEnvRefType) { 76 this.resourceEnvRefType = resourceEnvRefType; 77 } 78 79 80 81 83 86 public String getDescription() { 87 return description; 88 } 89 90 91 94 public String getResourceEnvRefName() { 95 return resourceEnvRefName; 96 } 97 98 99 102 public String getResourceEnvRefType() { 103 return resourceEnvRefType; 104 } 105 106 107 108 113 public String toXML(int indent) { 114 StringBuffer sb = new StringBuffer (); 115 sb.append(indent(indent)); 116 sb.append("<resource-env-ref>\n"); 117 118 indent += 2; 119 120 sb.append(xmlElement(description, "description", indent)); 122 123 sb.append(xmlElement(resourceEnvRefName, "resource-env-ref-name", indent)); 125 126 sb.append(xmlElement(resourceEnvRefType, "resource-env-ref-type", indent)); 128 129 indent -= 2; 130 sb.append(indent(indent)); 131 sb.append("</resource-env-ref>\n"); 132 133 return sb.toString(); 134 } 135 136 137 138 } 139 | Popular Tags |