1 27 package org.objectweb.jonas_ejb.deployment.xml; 28 29 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 30 35 36 public class Method extends AbsElement { 37 38 41 private String description = null; 42 43 46 private String ejbName = null; 47 48 51 private String methodIntf = null; 52 53 56 private String methodName = null; 57 58 61 private MethodParams methodParams = null; 62 63 64 67 public Method() { 68 super(); 69 } 70 71 75 public String getDescription() { 76 return description; 77 } 78 79 83 public void setDescription(String description) { 84 this.description = description; 85 } 86 87 91 public String getEjbName() { 92 return ejbName; 93 } 94 95 99 public void setEjbName(String ejbName) { 100 this.ejbName = ejbName; 101 } 102 103 107 public String getMethodIntf() { 108 return methodIntf; 109 } 110 111 115 public void setMethodIntf(String methodIntf) { 116 this.methodIntf = methodIntf; 117 } 118 119 123 public String getMethodName() { 124 return methodName; 125 } 126 127 131 public void setMethodName(String methodName) { 132 this.methodName = methodName; 133 } 134 135 139 public MethodParams getMethodParams() { 140 return methodParams; 141 } 142 143 147 public void setMethodParams(MethodParams methodParams) { 148 this.methodParams = methodParams; 149 } 150 151 156 public String toXML(int indent) { 157 StringBuffer sb = new StringBuffer (); 158 sb.append(indent(indent)); 159 sb.append("<method>\n"); 160 161 indent += 2; 162 163 sb.append(xmlElement(description, "description", indent)); 165 sb.append(xmlElement(ejbName, "ejb-name", indent)); 167 sb.append(xmlElement(methodIntf, "method-intf", indent)); 169 sb.append(xmlElement(methodName, "method-name", indent)); 171 if (methodParams != null) { 173 sb.append(methodParams.toXML(indent)); 174 } 175 indent -= 2; 176 sb.append(indent(indent)); 177 sb.append("</method>\n"); 178 179 return sb.toString(); 180 } 181 } 182 | Popular Tags |