1 26 27 package org.objectweb.jonas_lib.deployment.xml; 28 29 33 public class MessageDestination extends AbsElement { 34 35 38 private String messageDestinationName = null; 39 40 41 43 47 public void setMessageDestinationName(String name) { 48 this.messageDestinationName = name; 49 } 50 51 52 54 57 public String getMessageDestinationName() { 58 return messageDestinationName; 59 } 60 61 62 67 public String toXML(int indent) { 68 StringBuffer sb = new StringBuffer (); 69 sb.append(indent(indent)); 70 sb.append("<message-destination>\n"); 71 72 indent += 2; 73 74 sb.append(xmlElement(messageDestinationName, "message-destination-name", indent)); 76 77 indent -= 2; 78 sb.append(indent(indent)); 79 sb.append("</message-destination>\n"); 80 81 return sb.toString(); 82 } 83 84 85 86 } 87 | Popular Tags |