1 27 package org.objectweb.jonas_rar.deployment.xml; 28 29 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 30 31 36 37 public class Messagelistener extends AbsElement { 38 39 42 private String id = null; 43 44 47 private String messagelistenerType = null; 48 49 52 private Activationspec activationspec = null; 53 54 55 58 public Messagelistener() { 59 super(); 60 } 61 62 66 public String getId() { 67 return id; 68 } 69 70 74 public void setId(String id) { 75 this.id = id; 76 } 77 78 82 public String getMessagelistenerType() { 83 return messagelistenerType; 84 } 85 86 90 public void setMessagelistenerType(String messagelistenerType) { 91 this.messagelistenerType = messagelistenerType; 92 } 93 94 98 public Activationspec getActivationspec() { 99 return activationspec; 100 } 101 102 106 public void setActivationspec(Activationspec activationspec) { 107 this.activationspec = activationspec; 108 } 109 110 115 public String toXML(int indent) { 116 StringBuffer sb = new StringBuffer (); 117 sb.append(indent(indent)); 118 sb.append("<messagelistener"); 119 sb.append(xmlAttribute(id, "id")); 120 sb.append(">\n"); 121 122 indent += 2; 123 124 sb.append(xmlElement(messagelistenerType, "messagelistener-type", indent)); 126 if (activationspec != null) { 128 sb.append(activationspec.toXML(indent)); 129 } 130 indent -= 2; 131 sb.append(indent(indent)); 132 sb.append("</messagelistener>\n"); 133 134 return sb.toString(); 135 } 136 } 137 | Popular Tags |