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 ExcludeList extends AbsElement { 38 39 42 private String description = null; 43 44 47 private JLinkedList methodList = null; 48 49 50 53 public ExcludeList() { 54 super(); 55 methodList = new JLinkedList("method"); 56 } 57 58 62 public String getDescription() { 63 return description; 64 } 65 66 70 public void setDescription(String description) { 71 this.description = description; 72 } 73 74 78 public JLinkedList getMethodList() { 79 return methodList; 80 } 81 82 86 public void setMethodList(JLinkedList methodList) { 87 this.methodList = methodList; 88 } 89 90 94 public void addMethod(Method method) { 95 methodList.add(method); 96 } 97 98 103 public String toXML(int indent) { 104 StringBuffer sb = new StringBuffer (); 105 sb.append(indent(indent)); 106 sb.append("<exclude-list>\n"); 107 108 indent += 2; 109 110 sb.append(xmlElement(description, "description", indent)); 112 sb.append(methodList.toXML(indent)); 114 indent -= 2; 115 sb.append(indent(indent)); 116 sb.append("</exclude-list>\n"); 117 118 return sb.toString(); 119 } 120 } 121 | Popular Tags |