1 26 27 package org.objectweb.jonas_lib.deployment.xml; 28 29 33 public class MessageDestinationRef extends AbsElement { 34 35 38 private String description = null; 39 40 43 private String messageDestinationRefName = null; 44 45 48 private String messageDestinationType = null; 49 50 53 private String messageDestinationUsage = null; 54 55 58 private String messageDestinationLink = null; 59 60 61 63 67 public void setDescription(String description) { 68 this.description = description; 69 } 70 71 72 76 public void setMessageDestinationRefName(String refName) { 77 this.messageDestinationRefName = refName; 78 } 79 80 81 85 public void setMessageDestinationType(String type) { 86 this.messageDestinationType = type; 87 } 88 89 90 94 public void setMessageDestinationUsage(String usage) { 95 this.messageDestinationUsage = usage; 96 } 97 98 99 103 public void setMessageDestinationLink(String link) { 104 this.messageDestinationLink = link; 105 } 106 107 108 110 113 public String getDescription() { 114 return description; 115 } 116 117 118 121 public String getMessageDestinationRefName() { 122 return messageDestinationRefName; 123 } 124 125 126 129 public String getMessageDestinationType() { 130 return messageDestinationType; 131 } 132 133 136 public String getMessageDestinationUsage() { 137 return messageDestinationUsage; 138 } 139 140 143 public String getMessageDestinationLink() { 144 return messageDestinationLink; 145 } 146 147 148 149 154 public String toXML(int indent) { 155 StringBuffer sb = new StringBuffer (); 156 sb.append(indent(indent)); 157 sb.append("<message-destination-ref>\n"); 158 159 indent += 2; 160 161 sb.append(xmlElement(description, "description", indent)); 163 164 sb.append(xmlElement(messageDestinationRefName, "message-destination-ref-name", indent)); 166 167 sb.append(xmlElement(messageDestinationType, "message-destination-type", indent)); 169 170 sb.append(xmlElement(messageDestinationUsage, "message-destination-usage", indent)); 172 173 sb.append(xmlElement(messageDestinationLink, "message-destination-link", indent)); 175 176 indent -= 2; 177 sb.append(indent(indent)); 178 sb.append("</message-destination-ref>\n"); 179 180 return sb.toString(); 181 } 182 183 184 } 185 | Popular Tags |