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 36 37 public class Messageadapter extends AbsElement { 38 39 42 private JLinkedList messagelistenerList = null; 43 44 47 public Messageadapter() { 48 super(); 49 messagelistenerList = new JLinkedList("messagelistener"); 50 } 51 52 56 public JLinkedList getMessagelistenerList() { 57 return messagelistenerList; 58 } 59 60 64 public void setMessagelistenerList(JLinkedList messagelistenerList) { 65 this.messagelistenerList = messagelistenerList; 66 } 67 68 72 public void addMessagelistener(Messagelistener messagelistener) { 73 messagelistenerList.add(messagelistener); 74 } 75 76 77 82 public String toXML(int indent) { 83 StringBuffer sb = new StringBuffer (); 84 sb.append(indent(indent)); 85 sb.append("<messageadapter>\n"); 86 87 indent += 2; 88 89 sb.append(messagelistenerList.toXML(indent)); 91 indent -= 2; 92 sb.append(indent(indent)); 93 sb.append("</messageadapter>\n"); 94 95 return sb.toString(); 96 } 97 } 98 | Popular Tags |