KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * This generated bean class WebservicesType matches the schema element webservicesType
3  *
4  * ===============================================================
5  *
6  *
7  * This group keeps the usage of the contained description related
8  * elements consistent across J2EE deployment descriptors.
9  *
10  * All elements may occur multiple times with different languages,
11  * to support localization of the content.
12  *
13  *
14  * ===============================================================
15  * Generated on Fri Apr 22 15:42:56 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 WebservicesType extends org.netbeans.modules.schema2beans.BaseBean
28 {
29
30     static Vector comparators = new Vector();
31
32     static public final String JavaDoc DESCRIPTION = "Description"; // NOI18N
33
static public final String JavaDoc DISPLAY_NAME = "DisplayName"; // NOI18N
34
static public final String JavaDoc ICON = "Icon"; // NOI18N
35
static public final String JavaDoc WEBSERVICE_DESCRIPTION = "WebserviceDescription"; // NOI18N
36

37     public WebservicesType() {
38         this(Common.USE_DEFAULT_VALUES);
39     }
40
41     public WebservicesType(int options)
42     {
43         super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
44         // Properties (see root bean comments for the bean graph)
45
this.createProperty("description", // NOI18N
46
DESCRIPTION,
47             Common.TYPE_0_N | Common.TYPE_STRING | Common.TYPE_KEY,
48             java.lang.String JavaDoc.class);
49         this.createAttribute(DESCRIPTION, "id", "Id",
50                         AttrProp.CDATA | AttrProp.IMPLIED,
51                         null, null);
52         this.createAttribute(DESCRIPTION, "xml:lang", "XmlLang",
53                         AttrProp.CDATA | AttrProp.IMPLIED,
54                         null, null);
55         this.createProperty("display-name", // NOI18N
56
DISPLAY_NAME,
57             Common.TYPE_0_N | Common.TYPE_STRING | Common.TYPE_KEY,
58             java.lang.String JavaDoc.class);
59         this.createAttribute(DISPLAY_NAME, "id", "Id",
60                         AttrProp.CDATA | AttrProp.IMPLIED,
61                         null, null);
62         this.createAttribute(DISPLAY_NAME, "xml:lang", "XmlLang",
63                         AttrProp.CDATA | AttrProp.IMPLIED,
64                         null, null);
65         this.createProperty("icon", // NOI18N
66
ICON,
67             Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY,
68             IconType.class);
69         this.createAttribute(ICON, "xml:lang", "XmlLang",
70                         AttrProp.CDATA | AttrProp.IMPLIED,
71                         null, null);
72         this.createAttribute(ICON, "id", "Id",
73                         AttrProp.CDATA | AttrProp.IMPLIED,
74                         null, null);
75         this.createProperty("webservice-description", // NOI18N
76
WEBSERVICE_DESCRIPTION,
77             Common.TYPE_1_N | Common.TYPE_BEAN | Common.TYPE_KEY,
78             WebserviceDescriptionType.class);
79         this.createAttribute(WEBSERVICE_DESCRIPTION, "id", "Id",
80                         AttrProp.CDATA | AttrProp.IMPLIED,
81                         null, null);
82         this.initialize(options);
83     }
84
85     // Setting the default values of the properties
86
void initialize(int options)
87     {
88
89     }
90
91     // This attribute is an array, possibly empty
92
public void setDescription(int index, java.lang.String JavaDoc value) {
93         this.setValue(DESCRIPTION, index, value);
94     }
95
96     //
97
public java.lang.String JavaDoc getDescription(int index) {
98         return (java.lang.String JavaDoc)this.getValue(DESCRIPTION, index);
99     }
100
101     // This attribute is an array, possibly empty
102
public void setDescription(java.lang.String JavaDoc[] value) {
103         this.setValue(DESCRIPTION, value);
104     }
105
106     //
107
public java.lang.String JavaDoc[] getDescription() {
108         return (java.lang.String JavaDoc[])this.getValues(DESCRIPTION);
109     }
110
111     // Return the number of properties
112
public int sizeDescription() {
113         return this.size(DESCRIPTION);
114     }
115
116     // Add a new element returning its index in the list
117
public int addDescription(java.lang.String JavaDoc value) {
118         return this.addValue(DESCRIPTION, value);
119     }
120
121     //
122
// Remove an element using its reference
123
// Returns the index the element had in the list
124
//
125
public int removeDescription(java.lang.String JavaDoc value) {
126         return this.removeValue(DESCRIPTION, value);
127     }
128
129     // This attribute is an array, possibly empty
130
public void setDisplayName(int index, java.lang.String JavaDoc value) {
131         this.setValue(DISPLAY_NAME, index, value);
132     }
133
134     //
135
public java.lang.String JavaDoc getDisplayName(int index) {
136         return (java.lang.String JavaDoc)this.getValue(DISPLAY_NAME, index);
137     }
138
139     // This attribute is an array, possibly empty
140
public void setDisplayName(java.lang.String JavaDoc[] value) {
141         this.setValue(DISPLAY_NAME, value);
142     }
143
144     //
145
public java.lang.String JavaDoc[] getDisplayName() {
146         return (java.lang.String JavaDoc[])this.getValues(DISPLAY_NAME);
147     }
148
149     // Return the number of properties
150
public int sizeDisplayName() {
151         return this.size(DISPLAY_NAME);
152     }
153
154     // Add a new element returning its index in the list
155
public int addDisplayName(java.lang.String JavaDoc value) {
156         return this.addValue(DISPLAY_NAME, value);
157     }
158
159     //
160
// Remove an element using its reference
161
// Returns the index the element had in the list
162
//
163
public int removeDisplayName(java.lang.String JavaDoc value) {
164         return this.removeValue(DISPLAY_NAME, value);
165     }
166
167     // This attribute is an array, possibly empty
168
public void setIcon(int index, IconType value) {
169         this.setValue(ICON, index, value);
170     }
171
172     //
173
public IconType getIcon(int index) {
174         return (IconType)this.getValue(ICON, index);
175     }
176
177     // This attribute is an array, possibly empty
178
public void setIcon(IconType[] value) {
179         this.setValue(ICON, value);
180     }
181
182     //
183
public IconType[] getIcon() {
184         return (IconType[])this.getValues(ICON);
185     }
186
187     // Return the number of properties
188
public int sizeIcon() {
189         return this.size(ICON);
190     }
191
192     // Add a new element returning its index in the list
193
public int addIcon(com.sun.enterprise.tools.common.dd.webservice.IconType value) {
194         return this.addValue(ICON, value);
195     }
196
197     //
198
// Remove an element using its reference
199
// Returns the index the element had in the list
200
//
201
public int removeIcon(com.sun.enterprise.tools.common.dd.webservice.IconType value) {
202         return this.removeValue(ICON, value);
203     }
204
205     // This attribute is an array containing at least one element
206
public void setWebserviceDescription(int index, WebserviceDescriptionType value) {
207         this.setValue(WEBSERVICE_DESCRIPTION, index, value);
208     }
209
210     //
211
public WebserviceDescriptionType getWebserviceDescription(int index) {
212         return (WebserviceDescriptionType)this.getValue(WEBSERVICE_DESCRIPTION, index);
213     }
214
215     // This attribute is an array containing at least one element
216
public void setWebserviceDescription(WebserviceDescriptionType[] value) {
217         this.setValue(WEBSERVICE_DESCRIPTION, value);
218     }
219
220     //
221
public WebserviceDescriptionType[] getWebserviceDescription() {
222         return (WebserviceDescriptionType[])this.getValues(WEBSERVICE_DESCRIPTION);
223     }
224
225     // Return the number of properties
226
public int sizeWebserviceDescription() {
227         return this.size(WEBSERVICE_DESCRIPTION);
228     }
229
230     // Add a new element returning its index in the list
231
public int addWebserviceDescription(com.sun.enterprise.tools.common.dd.webservice.WebserviceDescriptionType value) {
232         return this.addValue(WEBSERVICE_DESCRIPTION, value);
233     }
234
235     //
236
// Remove an element using its reference
237
// Returns the index the element had in the list
238
//
239
public int removeWebserviceDescription(com.sun.enterprise.tools.common.dd.webservice.WebserviceDescriptionType value) {
240         return this.removeValue(WEBSERVICE_DESCRIPTION, value);
241     }
242
243     //
244
public static void addComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
245         comparators.add(c);
246     }
247
248     //
249
public static void removeComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
250         comparators.remove(c);
251     }
252     public void validate() throws org.netbeans.modules.schema2beans.ValidateException {
253     }
254
255     // Dump the content of this bean returning it as a String
256
public void dump(StringBuffer JavaDoc str, String JavaDoc indent){
257         String JavaDoc s;
258         Object JavaDoc o;
259         org.netbeans.modules.schema2beans.BaseBean n;
260         str.append(indent);
261         str.append("Description["+this.sizeDescription()+"]"); // NOI18N
262
for(int i=0; i<this.sizeDescription(); i++)
263         {
264             str.append(indent+"\t");
265             str.append("#"+i+":");
266             str.append(indent+"\t"); // NOI18N
267
str.append("<"); // NOI18N
268
s = this.getDescription(i);
269             str.append((s==null?"null":s.trim())); // NOI18N
270
str.append(">\n"); // NOI18N
271
this.dumpAttributes(DESCRIPTION, i, str, indent);
272         }
273
274         str.append(indent);
275         str.append("DisplayName["+this.sizeDisplayName()+"]"); // NOI18N
276
for(int i=0; i<this.sizeDisplayName(); i++)
277         {
278             str.append(indent+"\t");
279             str.append("#"+i+":");
280             str.append(indent+"\t"); // NOI18N
281
str.append("<"); // NOI18N
282
s = this.getDisplayName(i);
283             str.append((s==null?"null":s.trim())); // NOI18N
284
str.append(">\n"); // NOI18N
285
this.dumpAttributes(DISPLAY_NAME, i, str, indent);
286         }
287
288         str.append(indent);
289         str.append("Icon["+this.sizeIcon()+"]"); // NOI18N
290
for(int i=0; i<this.sizeIcon(); i++)
291         {
292             str.append(indent+"\t");
293             str.append("#"+i+":");
294             n = (org.netbeans.modules.schema2beans.BaseBean) this.getIcon(i);
295             if (n != null)
296                 n.dump(str, indent + "\t"); // NOI18N
297
else
298                 str.append(indent+"\tnull"); // NOI18N
299
this.dumpAttributes(ICON, i, str, indent);
300         }
301
302         str.append(indent);
303         str.append("WebserviceDescription["+this.sizeWebserviceDescription()+"]"); // NOI18N
304
for(int i=0; i<this.sizeWebserviceDescription(); i++)
305         {
306             str.append(indent+"\t");
307             str.append("#"+i+":");
308             n = (org.netbeans.modules.schema2beans.BaseBean) this.getWebserviceDescription(i);
309             if (n != null)
310                 n.dump(str, indent + "\t"); // NOI18N
311
else
312                 str.append(indent+"\tnull"); // NOI18N
313
this.dumpAttributes(WEBSERVICE_DESCRIPTION, i, str, indent);
314         }
315
316     }
317     public String JavaDoc dumpBeanNode(){
318         StringBuffer JavaDoc str = new StringBuffer JavaDoc();
319         str.append("WebservicesType\n"); // NOI18N
320
this.dump(str, "\n "); // NOI18N
321
return str.toString();
322     }}
323
324 // END_NOI18N
325

326
327 /*
328  * The contents of this file are subject to the terms
329  * of the Common Development and Distribution License
330  * (the License). You may not use this file except in
331  * compliance with the License.
332  *
333  * You can obtain a copy of the license at
334  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
335  * glassfish/bootstrap/legal/CDDLv1.0.txt.
336  * See the License for the specific language governing
337  * permissions and limitations under the License.
338  *
339  * When distributing Covered Code, include this CDDL
340  * Header Notice in each file and include the License file
341  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
342  * If applicable, add the following below the CDDL Header,
343  * with the fields enclosed by brackets [] replaced by
344  * you own identifying information:
345  * "Portions Copyrighted [year] [name of copyright owner]"
346  *
347  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
348  */

349
Popular Tags