1 27 package org.objectweb.jonas_rar.deployment.xml; 28 29 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 30 import org.objectweb.jonas_lib.deployment.xml.JLinkedList; 31 32 37 38 public class TmParams extends AbsElement { 39 40 43 private JLinkedList tmConfigPropertyList = null; 44 45 46 47 50 public TmParams() { 51 super(); 52 tmConfigPropertyList = new JLinkedList("tm-config-property"); 53 } 54 55 59 public JLinkedList getTmConfigPropertyList() { 60 return tmConfigPropertyList; 61 } 62 63 67 public void setTmConfigPropertyList(JLinkedList tmConfigPropertyList) { 68 this.tmConfigPropertyList = tmConfigPropertyList; 69 } 70 71 75 public void addTmConfigProperty(TmConfigProperty tmConfigProperty) { 76 tmConfigPropertyList.add(tmConfigProperty); 77 } 78 79 80 85 public String toXML(int indent) { 86 StringBuffer sb = new StringBuffer (); 87 sb.append(indent(indent)); 88 sb.append("<tm-params>\n"); 89 90 indent += 2; 91 92 if (tmConfigPropertyList != null) { 94 sb.append(tmConfigPropertyList.toXML(indent)); 95 } 96 indent -= 2; 97 sb.append(indent(indent)); 98 sb.append("</tm-params>\n"); 99 100 return sb.toString(); 101 } 102 } 103 | Popular Tags |