1 17 18 package com.sun.enterprise.tools.common.dd.webservice; 19 20 import org.w3c.dom.*; 21 import org.netbeans.modules.schema2beans.*; 22 import java.beans.*; 23 import java.util.*; 24 25 27 public class PortComponentRefType extends org.netbeans.modules.schema2beans.BaseBean 28 { 29 30 static Vector comparators = new Vector(); 31 32 static public final String SERVICE_ENDPOINT_INTERFACE = "ServiceEndpointInterface"; static public final String PORT_COMPONENT_LINK = "PortComponentLink"; 35 public PortComponentRefType() { 36 this(Common.USE_DEFAULT_VALUES); 37 } 38 39 public PortComponentRefType(int options) 40 { 41 super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); 42 this.createProperty("service-endpoint-interface", SERVICE_ENDPOINT_INTERFACE, 45 Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 46 java.lang.String .class); 47 this.createProperty("port-component-link", PORT_COMPONENT_LINK, 49 Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 50 java.lang.String .class); 51 this.createAttribute(PORT_COMPONENT_LINK, "id", "Id", 52 AttrProp.CDATA | AttrProp.IMPLIED, 53 null, null); 54 this.initialize(options); 55 } 56 57 void initialize(int options) 59 { 60 61 } 62 63 public void setServiceEndpointInterface(java.lang.String value) { 65 this.setValue(SERVICE_ENDPOINT_INTERFACE, value); 66 } 67 68 public java.lang.String getServiceEndpointInterface() { 70 return (java.lang.String )this.getValue(SERVICE_ENDPOINT_INTERFACE); 71 } 72 73 public void setPortComponentLink(java.lang.String value) { 75 this.setValue(PORT_COMPONENT_LINK, value); 76 } 77 78 public java.lang.String getPortComponentLink() { 80 return (java.lang.String )this.getValue(PORT_COMPONENT_LINK); 81 } 82 83 public static void addComparator(org.netbeans.modules.schema2beans.BeanComparator c) { 85 comparators.add(c); 86 } 87 88 public static void removeComparator(org.netbeans.modules.schema2beans.BeanComparator c) { 90 comparators.remove(c); 91 } 92 public void validate() throws org.netbeans.modules.schema2beans.ValidateException { 93 } 94 95 public void dump(StringBuffer str, String indent){ 97 String s; 98 Object o; 99 org.netbeans.modules.schema2beans.BaseBean n; 100 str.append(indent); 101 str.append("ServiceEndpointInterface"); str.append(indent+"\t"); str.append("<"); s = this.getServiceEndpointInterface(); 105 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(SERVICE_ENDPOINT_INTERFACE, 0, str, indent); 108 109 str.append(indent); 110 str.append("PortComponentLink"); str.append(indent+"\t"); str.append("<"); s = this.getPortComponentLink(); 114 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(PORT_COMPONENT_LINK, 0, str, indent); 117 118 } 119 public String dumpBeanNode(){ 120 StringBuffer str = new StringBuffer (); 121 str.append("PortComponentRefType\n"); this.dump(str, "\n "); return str.toString(); 124 }} 125 126 128 129 151 | Popular Tags |