1 27 package org.objectweb.jonas_rar.deployment.xml; 28 29 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 30 31 36 37 public class InboundResourceadapter extends AbsElement { 38 39 42 private Messageadapter messageadapter = null; 43 44 47 public InboundResourceadapter() { 48 super(); 49 } 50 51 55 public Messageadapter getMessageadapter() { 56 return messageadapter; 57 } 58 59 63 public void setMessageadapter(Messageadapter messageadapter) { 64 this.messageadapter = messageadapter; 65 } 66 67 72 public String toXML(int indent) { 73 StringBuffer sb = new StringBuffer (); 74 sb.append(indent(indent)); 75 sb.append("<inbound-resourceadapter>\n"); 76 77 indent += 2; 78 79 if (messageadapter != null) { 81 sb.append(messageadapter.toXML(indent)); 82 } 83 indent -= 2; 84 sb.append(indent(indent)); 85 sb.append("</inbound-resourceadapter>\n"); 86 87 return sb.toString(); 88 } 89 } 90 | Popular Tags |