MessageDestination.java

00001 
00027 package org.objectweb.jonas_lib.deployment.xml;
00028 
00033 public class MessageDestination extends AbsElement {
00034 
00038     private String messageDestinationName = null;
00039 
00040 
00041     // Setters
00042 
00047     public void setMessageDestinationName(String name) {
00048         this.messageDestinationName = name;
00049     }
00050 
00051 
00052     // Getters
00053 
00057     public String getMessageDestinationName() {
00058         return messageDestinationName;
00059     }
00060 
00061 
00067     public String toXML(int indent) {
00068         StringBuffer sb = new StringBuffer();
00069         sb.append(indent(indent));
00070         sb.append("<message-destination>\n");
00071 
00072         indent += 2;
00073 
00074         // name
00075         sb.append(xmlElement(messageDestinationName, "message-destination-name", indent));
00076 
00077         indent -= 2;
00078         sb.append(indent(indent));
00079         sb.append("</message-destination>\n");
00080 
00081         return sb.toString();
00082     }
00083 
00084 
00085 
00086 }

Generated on Tue Feb 15 15:05:51 2005 for JOnAS by  doxygen 1.3.9.1