Method.java

00001 
00027 package org.objectweb.jonas_ejb.deployment.xml;
00028 
00029 import org.objectweb.jonas_lib.deployment.xml.AbsElement;
00036 public class Method extends AbsElement  {
00037 
00041     private String description = null;
00042 
00046     private String ejbName = null;
00047 
00051     private String methodIntf = null;
00052 
00056     private String methodName = null;
00057 
00061     private MethodParams methodParams = null;
00062 
00063 
00067     public Method() {
00068         super();
00069     }
00070 
00075     public String getDescription() {
00076         return description;
00077     }
00078 
00083     public void setDescription(String description) {
00084         this.description = description;
00085     }
00086 
00091     public String getEjbName() {
00092         return ejbName;
00093     }
00094 
00099     public void setEjbName(String ejbName) {
00100         this.ejbName = ejbName;
00101     }
00102 
00107     public String getMethodIntf() {
00108         return methodIntf;
00109     }
00110 
00115     public void setMethodIntf(String methodIntf) {
00116         this.methodIntf = methodIntf;
00117     }
00118 
00123     public String getMethodName() {
00124         return methodName;
00125     }
00126 
00131     public void setMethodName(String methodName) {
00132         this.methodName = methodName;
00133     }
00134 
00139     public MethodParams getMethodParams() {
00140         return methodParams;
00141     }
00142 
00147     public void setMethodParams(MethodParams methodParams) {
00148         this.methodParams = methodParams;
00149     }
00150 
00156     public String toXML(int indent) {
00157         StringBuffer sb = new StringBuffer();
00158         sb.append(indent(indent));
00159         sb.append("<method>\n");
00160 
00161         indent += 2;
00162 
00163         // description
00164         sb.append(xmlElement(description, "description", indent));
00165         // ejb-name
00166         sb.append(xmlElement(ejbName, "ejb-name", indent));
00167         // method-intf
00168         sb.append(xmlElement(methodIntf, "method-intf", indent));
00169         // method-name
00170         sb.append(xmlElement(methodName, "method-name", indent));
00171         // method-params
00172         if (methodParams != null) {
00173             sb.append(methodParams.toXML(indent));
00174         }
00175         indent -= 2;
00176         sb.append(indent(indent));
00177         sb.append("</method>\n");
00178 
00179         return sb.toString();
00180     }
00181 }

Generated on Tue Feb 15 15:05:47 2005 for JOnAS by  doxygen 1.3.9.1