00001
00027 package org.objectweb.jonas_lib.deployment.xml;
00028
00033 public class MessageDestinationRef extends AbsElement {
00034
00038 private String description = null;
00039
00043 private String messageDestinationRefName = null;
00044
00048 private String messageDestinationType = null;
00049
00053 private String messageDestinationUsage = null;
00054
00058 private String messageDestinationLink = null;
00059
00060
00061
00062
00067 public void setDescription(String description) {
00068 this.description = description;
00069 }
00070
00071
00076 public void setMessageDestinationRefName(String refName) {
00077 this.messageDestinationRefName = refName;
00078 }
00079
00080
00085 public void setMessageDestinationType(String type) {
00086 this.messageDestinationType = type;
00087 }
00088
00089
00094 public void setMessageDestinationUsage(String usage) {
00095 this.messageDestinationUsage = usage;
00096 }
00097
00098
00103 public void setMessageDestinationLink(String link) {
00104 this.messageDestinationLink = link;
00105 }
00106
00107
00108
00109
00113 public String getDescription() {
00114 return description;
00115 }
00116
00117
00121 public String getMessageDestinationRefName() {
00122 return messageDestinationRefName;
00123 }
00124
00125
00129 public String getMessageDestinationType() {
00130 return messageDestinationType;
00131 }
00132
00136 public String getMessageDestinationUsage() {
00137 return messageDestinationUsage;
00138 }
00139
00143 public String getMessageDestinationLink() {
00144 return messageDestinationLink;
00145 }
00146
00147
00148
00154 public String toXML(int indent) {
00155 StringBuffer sb = new StringBuffer();
00156 sb.append(indent(indent));
00157 sb.append("<message-destination-ref>\n");
00158
00159 indent += 2;
00160
00161
00162 sb.append(xmlElement(description, "description", indent));
00163
00164
00165 sb.append(xmlElement(messageDestinationRefName, "message-destination-ref-name", indent));
00166
00167
00168 sb.append(xmlElement(messageDestinationType, "message-destination-type", indent));
00169
00170
00171 sb.append(xmlElement(messageDestinationUsage, "message-destination-usage", indent));
00172
00173
00174 sb.append(xmlElement(messageDestinationLink, "message-destination-link", indent));
00175
00176 indent -= 2;
00177 sb.append(indent(indent));
00178 sb.append("</message-destination-ref>\n");
00179
00180 return sb.toString();
00181 }
00182
00183
00184 }