1 23 24 29 30 package com.sun.enterprise.tools.common.dd; 31 32 import org.w3c.dom.*; 33 import org.netbeans.modules.schema2beans.*; 34 import java.beans.*; 35 import java.util.*; 36 37 39 public class WebserviceDescription extends com.sun.enterprise.tools.common.dd.SunBaseBean 40 { 41 42 static Vector comparators = new Vector(); 43 44 static public final String WEBSERVICE_DESCRIPTION_NAME = "WebserviceDescriptionName"; static public final String WSDL_PUBLISH_LOCATION = "WsdlPublishLocation"; 47 public WebserviceDescription() { 48 this(Common.USE_DEFAULT_VALUES); 49 } 50 51 public WebserviceDescription(int options) 52 { 53 super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); 54 this.createProperty("webservice-description-name", WEBSERVICE_DESCRIPTION_NAME, 57 Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 58 String .class); 59 this.createProperty("wsdl-publish-location", WSDL_PUBLISH_LOCATION, 61 Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 62 String .class); 63 this.initialize(options); 64 } 65 66 void initialize(int options) 68 { 69 70 } 71 72 public void setWebserviceDescriptionName(String value) { 74 this.setValue(WEBSERVICE_DESCRIPTION_NAME, value); 75 } 76 77 public String getWebserviceDescriptionName() { 79 return (String )this.getValue(WEBSERVICE_DESCRIPTION_NAME); 80 } 81 82 public void setWsdlPublishLocation(String value) { 84 this.setValue(WSDL_PUBLISH_LOCATION, value); 85 } 86 87 public String getWsdlPublishLocation() { 89 return (String )this.getValue(WSDL_PUBLISH_LOCATION); 90 } 91 92 public static void addComparator(org.netbeans.modules.schema2beans.BeanComparator c) { 94 comparators.add(c); 95 } 96 97 public static void removeComparator(org.netbeans.modules.schema2beans.BeanComparator c) { 99 comparators.remove(c); 100 } 101 public void validate() throws org.netbeans.modules.schema2beans.ValidateException { 102 boolean restrictionFailure = false; 103 if (getWebserviceDescriptionName() == null) { 105 throw new org.netbeans.modules.schema2beans.ValidateException("getWebserviceDescriptionName() == null", "webserviceDescriptionName", this); } 107 if (getWsdlPublishLocation() != null) { 109 } 110 } 111 112 public void dump(StringBuffer str, String indent){ 114 String s; 115 Object o; 116 org.netbeans.modules.schema2beans.BaseBean n; 117 str.append(indent); 118 str.append("WebserviceDescriptionName"); str.append(indent+"\t"); str.append("<"); s = this.getWebserviceDescriptionName(); 122 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(WEBSERVICE_DESCRIPTION_NAME, 0, str, indent); 125 126 str.append(indent); 127 str.append("WsdlPublishLocation"); str.append(indent+"\t"); str.append("<"); s = this.getWsdlPublishLocation(); 131 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(WSDL_PUBLISH_LOCATION, 0, str, indent); 134 135 } 136 public String dumpBeanNode(){ 137 StringBuffer str = new StringBuffer (); 138 str.append("WebserviceDescription\n"); this.dump(str, "\n "); return str.toString(); 141 }} 142 143 145 146 419 | Popular Tags |