KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * This generated bean class ServiceImplBeanType matches the schema element service-impl-beanType
3  *
4  * ===============================================================
5  *
6  *
7  * The service-impl-bean element defines the web service implementation.
8  * A service implementation can be an EJB bean class or JAX-RPC web
9  * component. Existing EJB implementations are exposed as a web service
10  * using an ejb-link.
11  *
12  * Used in: port-component
13  *
14  *
15  * ===============================================================
16  * Generated on Fri Apr 22 15:43:01 PDT 2005
17  */

18
19 package com.sun.enterprise.tools.common.dd.webservice;
20
21 import org.w3c.dom.*;
22 import org.netbeans.modules.schema2beans.*;
23 import java.beans.*;
24 import java.util.*;
25
26 // BEGIN_NOI18N
27

28 public class ServiceImplBeanType extends org.netbeans.modules.schema2beans.BaseBean
29 {
30
31     static Vector comparators = new Vector();
32
33     static public final String JavaDoc EJB_LINK = "EjbLink"; // NOI18N
34
static public final String JavaDoc SERVLET_LINK = "ServletLink"; // NOI18N
35

36     public ServiceImplBeanType() {
37         this(Common.USE_DEFAULT_VALUES);
38     }
39
40     public ServiceImplBeanType(int options)
41     {
42         super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
43         // Properties (see root bean comments for the bean graph)
44
this.createProperty("ejb-link", // NOI18N
45
EJB_LINK, Common.SEQUENCE_OR |
46             Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY,
47             java.lang.String JavaDoc.class);
48         this.createProperty("servlet-link", // NOI18N
49
SERVLET_LINK, Common.SEQUENCE_OR |
50             Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY,
51             java.lang.String JavaDoc.class);
52         this.initialize(options);
53     }
54
55     // Setting the default values of the properties
56
void initialize(int options)
57     {
58
59     }
60
61     // This attribute is mandatory
62
public void setEjbLink(java.lang.String JavaDoc value) {
63         this.setValue(EJB_LINK, value);
64     }
65
66     //
67
public java.lang.String JavaDoc getEjbLink() {
68         return (java.lang.String JavaDoc)this.getValue(EJB_LINK);
69     }
70
71     // This attribute is mandatory
72
public void setServletLink(java.lang.String JavaDoc value) {
73         this.setValue(SERVLET_LINK, value);
74     }
75
76     //
77
public java.lang.String JavaDoc getServletLink() {
78         return (java.lang.String JavaDoc)this.getValue(SERVLET_LINK);
79     }
80
81     //
82
public static void addComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
83         comparators.add(c);
84     }
85
86     //
87
public static void removeComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
88         comparators.remove(c);
89     }
90     public void validate() throws org.netbeans.modules.schema2beans.ValidateException {
91     }
92
93     // Dump the content of this bean returning it as a String
94
public void dump(StringBuffer JavaDoc str, String JavaDoc indent){
95         String JavaDoc s;
96         Object JavaDoc o;
97         org.netbeans.modules.schema2beans.BaseBean n;
98         str.append(indent);
99         str.append("EjbLink"); // NOI18N
100
str.append(indent+"\t"); // NOI18N
101
str.append("<"); // NOI18N
102
s = this.getEjbLink();
103         str.append((s==null?"null":s.trim())); // NOI18N
104
str.append(">\n"); // NOI18N
105
this.dumpAttributes(EJB_LINK, 0, str, indent);
106
107         str.append(indent);
108         str.append("ServletLink"); // NOI18N
109
str.append(indent+"\t"); // NOI18N
110
str.append("<"); // NOI18N
111
s = this.getServletLink();
112         str.append((s==null?"null":s.trim())); // NOI18N
113
str.append(">\n"); // NOI18N
114
this.dumpAttributes(SERVLET_LINK, 0, str, indent);
115
116     }
117     public String JavaDoc dumpBeanNode(){
118         StringBuffer JavaDoc str = new StringBuffer JavaDoc();
119         str.append("ServiceImplBeanType\n"); // NOI18N
120
this.dump(str, "\n "); // NOI18N
121
return str.toString();
122     }}
123
124 // END_NOI18N
125

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

149
Popular Tags