1 27 package org.objectweb.jonas_ejb.deployment.xml; 28 29 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 30 import org.objectweb.jonas_lib.deployment.xml.JLinkedList; 31 36 37 public class MethodParams extends AbsElement { 38 39 42 private JLinkedList methodParamList = null; 43 44 45 48 public MethodParams() { 49 super(); 50 methodParamList = new JLinkedList("method-param"); 51 } 52 53 57 public JLinkedList getMethodParamList() { 58 return methodParamList; 59 } 60 61 65 public void setMethodParamList(JLinkedList methodParamList) { 66 this.methodParamList = methodParamList; 67 } 68 69 73 public void addMethodParam(String methodParam) { 74 methodParamList.add(methodParam); 75 } 76 77 82 public String toXML(int indent) { 83 StringBuffer sb = new StringBuffer (); 84 sb.append(indent(indent)); 85 sb.append("<method-params>\n"); 86 87 indent += 2; 88 89 sb.append(methodParamList.toXML(indent)); 91 indent -= 2; 92 sb.append(indent(indent)); 93 sb.append("</method-params>\n"); 94 95 return sb.toString(); 96 } 97 } 98 | Popular Tags |