MessageDrivenDestination.java

00001 
00027 package org.objectweb.jonas_ejb.deployment.xml;
00028 
00029 import org.objectweb.jonas_lib.deployment.xml.AbsElement;
00036 public class MessageDrivenDestination extends AbsElement  {
00037 
00041     private String destinationType = null;
00042 
00046     private String subscriptionDurability = null;
00047 
00048 
00052     public MessageDrivenDestination() {
00053         super();
00054     }
00055 
00060     public String getDestinationType() {
00061         return destinationType;
00062     }
00063 
00068     public void setDestinationType(String destinationType) {
00069         this.destinationType = destinationType;
00070     }
00071 
00076     public String getSubscriptionDurability() {
00077         return subscriptionDurability;
00078     }
00079 
00084     public void setSubscriptionDurability(String subscriptionDurability) {
00085         this.subscriptionDurability = subscriptionDurability;
00086     }
00087 
00093     public String toXML(int indent) {
00094         StringBuffer sb = new StringBuffer();
00095         sb.append(indent(indent));
00096         sb.append("<message-driven-destination>\n");
00097 
00098         indent += 2;
00099 
00100         // destination-type
00101         sb.append(xmlElement(destinationType, "destination-type", indent));
00102         // subscription-durability
00103         sb.append(xmlElement(subscriptionDurability, "subscription-durability", indent));
00104         indent -= 2;
00105         sb.append(indent(indent));
00106         sb.append("</message-driven-destination>\n");
00107 
00108         return sb.toString();
00109     }
00110 }

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