MethodParams.java

00001 
00027 package org.objectweb.jonas_ejb.deployment.xml;
00028 
00029 import org.objectweb.jonas_lib.deployment.xml.AbsElement;
00030 import org.objectweb.jonas_lib.deployment.xml.JLinkedList;
00037 public class MethodParams extends AbsElement  {
00038 
00042     private JLinkedList methodParamList = null;
00043 
00044 
00048     public MethodParams() {
00049         super();
00050         methodParamList = new  JLinkedList("method-param");
00051     }
00052 
00057     public JLinkedList getMethodParamList() {
00058         return methodParamList;
00059     }
00060 
00065     public void setMethodParamList(JLinkedList methodParamList) {
00066         this.methodParamList = methodParamList;
00067     }
00068 
00073     public void addMethodParam(String methodParam) {
00074         methodParamList.add(methodParam);
00075     }
00076 
00082     public String toXML(int indent) {
00083         StringBuffer sb = new StringBuffer();
00084         sb.append(indent(indent));
00085         sb.append("<method-params>\n");
00086 
00087         indent += 2;
00088 
00089         // method-param
00090         sb.append(methodParamList.toXML(indent));
00091         indent -= 2;
00092         sb.append(indent(indent));
00093         sb.append("</method-params>\n");
00094 
00095         return sb.toString();
00096     }
00097 }

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