WebserviceDescription.java

00001 
00028 package org.objectweb.jonas_ws.deployment.xml;
00029 
00030 import org.objectweb.jonas_lib.deployment.xml.AbsElement;
00031 import org.objectweb.jonas_lib.deployment.xml.JLinkedList;
00032 
00039 public class WebserviceDescription extends AbsElement  {
00040 
00044     private String description = null;
00045 
00049     private String displayName = null;
00050 
00054     private String smallIcon = null;
00055 
00059     private String largeIcon = null;
00060 
00064     private String webserviceDescriptionName = null;
00065 
00069     private String wsdlFile = null;
00070 
00074     private String jaxrpcMappingFile = null;
00075 
00079     private JLinkedList portComponentList = null;
00080 
00081 
00085     public WebserviceDescription() {
00086         super();
00087         portComponentList = new  JLinkedList("port-component");
00088     }
00089 
00094     public String getDescription() {
00095         return description;
00096     }
00097 
00102     public void setDescription(String description) {
00103         this.description = description;
00104     }
00105 
00110     public String getDisplayName() {
00111         return displayName;
00112     }
00113 
00118     public void setDisplayName(String displayName) {
00119         this.displayName = displayName;
00120     }
00121 
00126     public String getSmallIcon() {
00127         return smallIcon;
00128     }
00129 
00134     public void setSmallIcon(String smallIcon) {
00135         this.smallIcon = smallIcon;
00136     }
00137 
00142     public String getLargeIcon() {
00143         return largeIcon;
00144     }
00145 
00150     public void setLargeIcon(String largeIcon) {
00151         this.largeIcon = largeIcon;
00152     }
00153 
00158     public String getWebserviceDescriptionName() {
00159         return webserviceDescriptionName;
00160     }
00161 
00166     public void setWebserviceDescriptionName(String webserviceDescriptionName) {
00167         this.webserviceDescriptionName = webserviceDescriptionName;
00168     }
00169 
00174     public String getWsdlFile() {
00175         return wsdlFile;
00176     }
00177 
00182     public void setWsdlFile(String wsdlFile) {
00183         this.wsdlFile = wsdlFile;
00184     }
00185 
00190     public String getJaxrpcMappingFile() {
00191         return jaxrpcMappingFile;
00192     }
00193 
00198     public void setJaxrpcMappingFile(String jaxrpcMappingFile) {
00199         this.jaxrpcMappingFile = jaxrpcMappingFile;
00200     }
00201 
00206     public JLinkedList getPortComponentList() {
00207         return portComponentList;
00208     }
00209 
00214     public void setPortComponentList(JLinkedList portComponentList) {
00215         this.portComponentList = portComponentList;
00216     }
00217 
00222     public void addPortComponent(PortComponent portComponent) {
00223         portComponentList.add(portComponent);
00224     }
00225 
00231     public String toXML(int indent) {
00232         StringBuffer sb = new StringBuffer();
00233         sb.append(indent(indent));
00234         sb.append("<webservice-description>\n");
00235 
00236         indent += 2;
00237 
00238         // description
00239         sb.append(xmlElement(description, "description", indent));
00240         // display-name
00241         sb.append(xmlElement(displayName, "display-name", indent));
00242         // small-icon
00243         sb.append(xmlElement(smallIcon, "small-icon", indent));
00244         // large-icon
00245         sb.append(xmlElement(largeIcon, "large-icon", indent));
00246         // webservice-description-name
00247         sb.append(xmlElement(webserviceDescriptionName, "webservice-description-name", indent));
00248         // wsdl-file
00249         sb.append(xmlElement(wsdlFile, "wsdl-file", indent));
00250         // jaxrpc-mapping-file
00251         sb.append(xmlElement(jaxrpcMappingFile, "jaxrpc-mapping-file", indent));
00252         // port-component
00253         sb.append(portComponentList.toXML(indent));
00254         indent -= 2;
00255         sb.append(indent(indent));
00256         sb.append("</webservice-description>\n");
00257 
00258         return sb.toString();
00259     }
00260 }

Generated on Tue Feb 15 15:06:00 2005 for JOnAS by  doxygen 1.3.9.1