1 27 28 package org.objectweb.jonas_ws.deployment.xml; 29 30 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 31 import org.objectweb.jonas_lib.deployment.xml.JLinkedList; 32 33 38 39 public class WebserviceDescription extends AbsElement { 40 41 44 private String description = null; 45 46 49 private String displayName = null; 50 51 54 private String smallIcon = null; 55 56 59 private String largeIcon = null; 60 61 64 private String webserviceDescriptionName = null; 65 66 69 private String wsdlFile = null; 70 71 74 private String jaxrpcMappingFile = null; 75 76 79 private JLinkedList portComponentList = null; 80 81 82 85 public WebserviceDescription() { 86 super(); 87 portComponentList = new JLinkedList("port-component"); 88 } 89 90 94 public String getDescription() { 95 return description; 96 } 97 98 102 public void setDescription(String description) { 103 this.description = description; 104 } 105 106 110 public String getDisplayName() { 111 return displayName; 112 } 113 114 118 public void setDisplayName(String displayName) { 119 this.displayName = displayName; 120 } 121 122 126 public String getSmallIcon() { 127 return smallIcon; 128 } 129 130 134 public void setSmallIcon(String smallIcon) { 135 this.smallIcon = smallIcon; 136 } 137 138 142 public String getLargeIcon() { 143 return largeIcon; 144 } 145 146 150 public void setLargeIcon(String largeIcon) { 151 this.largeIcon = largeIcon; 152 } 153 154 158 public String getWebserviceDescriptionName() { 159 return webserviceDescriptionName; 160 } 161 162 166 public void setWebserviceDescriptionName(String webserviceDescriptionName) { 167 this.webserviceDescriptionName = webserviceDescriptionName; 168 } 169 170 174 public String getWsdlFile() { 175 return wsdlFile; 176 } 177 178 182 public void setWsdlFile(String wsdlFile) { 183 this.wsdlFile = wsdlFile; 184 } 185 186 190 public String getJaxrpcMappingFile() { 191 return jaxrpcMappingFile; 192 } 193 194 198 public void setJaxrpcMappingFile(String jaxrpcMappingFile) { 199 this.jaxrpcMappingFile = jaxrpcMappingFile; 200 } 201 202 206 public JLinkedList getPortComponentList() { 207 return portComponentList; 208 } 209 210 214 public void setPortComponentList(JLinkedList portComponentList) { 215 this.portComponentList = portComponentList; 216 } 217 218 222 public void addPortComponent(PortComponent portComponent) { 223 portComponentList.add(portComponent); 224 } 225 226 231 public String toXML(int indent) { 232 StringBuffer sb = new StringBuffer (); 233 sb.append(indent(indent)); 234 sb.append("<webservice-description>\n"); 235 236 indent += 2; 237 238 sb.append(xmlElement(description, "description", indent)); 240 sb.append(xmlElement(displayName, "display-name", indent)); 242 sb.append(xmlElement(smallIcon, "small-icon", indent)); 244 sb.append(xmlElement(largeIcon, "large-icon", indent)); 246 sb.append(xmlElement(webserviceDescriptionName, "webservice-description-name", indent)); 248 sb.append(xmlElement(wsdlFile, "wsdl-file", indent)); 250 sb.append(xmlElement(jaxrpcMappingFile, "jaxrpc-mapping-file", indent)); 252 sb.append(portComponentList.toXML(indent)); 254 indent -= 2; 255 sb.append(indent(indent)); 256 sb.append("</webservice-description>\n"); 257 258 return sb.toString(); 259 } 260 } 261 | Popular Tags |