1 27 package org.objectweb.jonas_ear.deployment.xml; 28 29 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 30 35 36 public class Module extends AbsElement { 37 38 41 private String connector = null; 42 43 46 private String ejb = null; 47 48 51 private String java = null; 52 53 56 private Web web = null; 57 58 61 private String altDd = null; 62 63 64 67 public Module() { 68 super(); 69 } 70 71 75 public String getConnector() { 76 return connector; 77 } 78 79 83 public void setConnector(String connector) { 84 this.connector = connector; 85 } 86 87 91 public String getEjb() { 92 return ejb; 93 } 94 95 99 public void setEjb(String ejb) { 100 this.ejb = ejb; 101 } 102 103 107 public String getJava() { 108 return java; 109 } 110 111 115 public void setJava(String java) { 116 this.java = java; 117 } 118 119 123 public Web getWeb() { 124 return web; 125 } 126 127 131 public void setWeb(Web web) { 132 this.web = web; 133 } 134 135 139 public String getAltDd() { 140 return altDd; 141 } 142 143 147 public void setAltDd(String altDd) { 148 this.altDd = altDd; 149 } 150 151 156 public String toXML(int indent) { 157 StringBuffer sb = new StringBuffer (); 158 sb.append(indent(indent)); 159 sb.append("<module>\n"); 160 161 indent += 2; 162 163 sb.append(xmlElement(connector, "connector", indent)); 165 sb.append(xmlElement(ejb, "ejb", indent)); 167 sb.append(xmlElement(java, "java", indent)); 169 if (web != null) { 171 sb.append(web.toXML(indent)); 172 } 173 sb.append(xmlElement(altDd, "alt-dd", indent)); 175 indent -= 2; 176 sb.append(indent(indent)); 177 sb.append("</module>\n"); 178 179 return sb.toString(); 180 } 181 } 182 | Popular Tags |