QueryMethod.java

00001 
00027 package org.objectweb.jonas_ejb.deployment.xml;
00028 
00029 import org.objectweb.jonas_lib.deployment.xml.AbsElement;
00036 public class QueryMethod extends AbsElement  {
00037 
00041     private String methodName = null;
00042 
00046     private MethodParams methodParams = null;
00047 
00048 
00052     public QueryMethod() {
00053         super();
00054     }
00055 
00060     public String getMethodName() {
00061         return methodName;
00062     }
00063 
00068     public void setMethodName(String methodName) {
00069         this.methodName = methodName;
00070     }
00071 
00076     public MethodParams getMethodParams() {
00077         return methodParams;
00078     }
00079 
00084     public void setMethodParams(MethodParams methodParams) {
00085         this.methodParams = methodParams;
00086     }
00087 
00093     public String toXML(int indent) {
00094         StringBuffer sb = new StringBuffer();
00095         sb.append(indent(indent));
00096         sb.append("<query-method>\n");
00097 
00098         indent += 2;
00099 
00100         // method-name
00101         sb.append(xmlElement(methodName, "method-name", indent));
00102         // method-params
00103         if (methodParams != null) {
00104             sb.append(methodParams.toXML(indent));
00105         }
00106         indent -= 2;
00107         sb.append(indent(indent));
00108         sb.append("</query-method>\n");
00109 
00110         return sb.toString();
00111     }
00112 }

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