1 26 27 package org.objectweb.jonas_lib.deployment.xml; 28 29 33 public class JonasResourceEnv extends AbsElement { 34 35 38 private String resourceEnvRefName = null; 39 40 43 private String jndiName = null; 44 45 46 48 52 public void setResourceEnvRefName(String resourceEnvRefName) { 53 this.resourceEnvRefName = resourceEnvRefName; 54 } 55 56 57 61 public void setJndiName(String jndiName) { 62 this.jndiName = jndiName; 63 } 64 65 66 67 69 70 73 public String getResourceEnvRefName() { 74 return resourceEnvRefName; 75 } 76 77 78 81 public String getJndiName() { 82 return jndiName; 83 } 84 85 86 87 92 public String toXML(int indent) { 93 StringBuffer sb = new StringBuffer (); 94 sb.append(indent(indent)); 95 sb.append("<jonas-resource-env>\n"); 96 97 indent += 2; 98 99 sb.append(xmlElement(resourceEnvRefName, "resource-env-ref-name", indent)); 101 102 sb.append(xmlElement(jndiName, "jndi-name", indent)); 104 105 indent -= 2; 106 sb.append(indent(indent)); 107 sb.append("</jonas-resource-env>\n"); 108 109 return sb.toString(); 110 } 111 112 113 114 } 115 | Popular Tags |