KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > tools > common > dd > webservice > PortComponentRefType


1 /**
2  * This generated bean class PortComponentRefType matches the schema element port-component-refType
3  *
4  * ===============================================================
5  *
6  *
7  * The port-component-ref element declares a client dependency
8  * on the container for resolving a Service Endpoint Interface
9  * to a WSDL port. It optionally associates the Service Endpoint
10  * Interface with a particular port-component. This is only used
11  * by the container for a Service.getPort(Class) method call.
12  *
13  *
14  * ===============================================================
15  * Generated on Fri Apr 22 15:42:58 PDT 2005
16  */

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 // BEGIN_NOI18N
26

27 public class PortComponentRefType extends org.netbeans.modules.schema2beans.BaseBean
28 {
29
30     static Vector comparators = new Vector();
31
32     static public final String JavaDoc SERVICE_ENDPOINT_INTERFACE = "ServiceEndpointInterface"; // NOI18N
33
static public final String JavaDoc PORT_COMPONENT_LINK = "PortComponentLink"; // NOI18N
34

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         // Properties (see root bean comments for the bean graph)
43
this.createProperty("service-endpoint-interface", // NOI18N
44
SERVICE_ENDPOINT_INTERFACE,
45             Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY,
46             java.lang.String JavaDoc.class);
47         this.createProperty("port-component-link", // NOI18N
48
PORT_COMPONENT_LINK,
49             Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY,
50             java.lang.String JavaDoc.class);
51         this.createAttribute(PORT_COMPONENT_LINK, "id", "Id",
52                         AttrProp.CDATA | AttrProp.IMPLIED,
53                         null, null);
54         this.initialize(options);
55     }
56
57     // Setting the default values of the properties
58
void initialize(int options)
59     {
60
61     }
62
63     // This attribute is mandatory
64
public void setServiceEndpointInterface(java.lang.String JavaDoc value) {
65         this.setValue(SERVICE_ENDPOINT_INTERFACE, value);
66     }
67
68     //
69
public java.lang.String JavaDoc getServiceEndpointInterface() {
70         return (java.lang.String JavaDoc)this.getValue(SERVICE_ENDPOINT_INTERFACE);
71     }
72
73     // This attribute is optional
74
public void setPortComponentLink(java.lang.String JavaDoc value) {
75         this.setValue(PORT_COMPONENT_LINK, value);
76     }
77
78     //
79
public java.lang.String JavaDoc getPortComponentLink() {
80         return (java.lang.String JavaDoc)this.getValue(PORT_COMPONENT_LINK);
81     }
82
83     //
84
public static void addComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
85         comparators.add(c);
86     }
87
88     //
89
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     // Dump the content of this bean returning it as a String
96
public void dump(StringBuffer JavaDoc str, String JavaDoc indent){
97         String JavaDoc s;
98         Object JavaDoc o;
99         org.netbeans.modules.schema2beans.BaseBean n;
100         str.append(indent);
101         str.append("ServiceEndpointInterface"); // NOI18N
102
str.append(indent+"\t"); // NOI18N
103
str.append("<"); // NOI18N
104
s = this.getServiceEndpointInterface();
105         str.append((s==null?"null":s.trim())); // NOI18N
106
str.append(">\n"); // NOI18N
107
this.dumpAttributes(SERVICE_ENDPOINT_INTERFACE, 0, str, indent);
108
109         str.append(indent);
110         str.append("PortComponentLink"); // NOI18N
111
str.append(indent+"\t"); // NOI18N
112
str.append("<"); // NOI18N
113
s = this.getPortComponentLink();
114         str.append((s==null?"null":s.trim())); // NOI18N
115
str.append(">\n"); // NOI18N
116
this.dumpAttributes(PORT_COMPONENT_LINK, 0, str, indent);
117
118     }
119     public String JavaDoc dumpBeanNode(){
120         StringBuffer JavaDoc str = new StringBuffer JavaDoc();
121         str.append("PortComponentRefType\n"); // NOI18N
122
this.dump(str, "\n "); // NOI18N
123
return str.toString();
124     }}
125
126 // END_NOI18N
127

128
129 /*
130  * The contents of this file are subject to the terms
131  * of the Common Development and Distribution License
132  * (the License). You may not use this file except in
133  * compliance with the License.
134  *
135  * You can obtain a copy of the license at
136  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
137  * glassfish/bootstrap/legal/CDDLv1.0.txt.
138  * See the License for the specific language governing
139  * permissions and limitations under the License.
140  *
141  * When distributing Covered Code, include this CDDL
142  * Header Notice in each file and include the License file
143  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
144  * If applicable, add the following below the CDDL Header,
145  * with the fields enclosed by brackets [] replaced by
146  * you own identifying information:
147  * "Portions Copyrighted [year] [name of copyright owner]"
148  *
149  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
150  */

151
Popular Tags