1 26 27 package org.objectweb.jonas_lib.deployment.xml; 28 29 33 public class JonasMessageDestinationRef extends AbsElement { 34 35 38 private String messageDestinationRefName = null; 39 40 43 private String jndiName = null; 44 45 46 48 52 public void setMessageDestinationRefName(String name) { 53 this.messageDestinationRefName = name; 54 } 55 56 57 61 public void setJndiName(String jndiName) { 62 this.jndiName = jndiName; 63 } 64 65 66 67 69 70 73 public String getMessageDestinationRefName() { 74 return messageDestinationRefName; 75 } 76 77 78 81 public String getJndiName() { 82 return jndiName; 83 } 84 85 86 87 92 public String toXML(int indent) { 93 StringBuffer sb = new StringBuffer (); 94 sb.append(indent(indent)); 95 sb.append("<jonas-message-destination-ref>\n"); 96 97 indent += 2; 98 99 sb.append(xmlElement(messageDestinationRefName, "message-destination-ref-name", indent)); 101 102 sb.append(xmlElement(jndiName, "jndi-name", indent)); 104 105 indent -= 2; 106 sb.append(indent(indent)); 107 sb.append("</jonas-message-destination-ref>\n"); 108 109 return sb.toString(); 110 } 111 112 113 114 } 115 | Popular Tags |