KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * This generated bean class PortComponentHandlerType matches the schema element port-component_handlerType
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:53 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 PortComponentHandlerType 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 HANDLER_NAME = "HandlerName"; // NOI18N
36
static public final String JavaDoc HANDLER_CLASS = "HandlerClass"; // NOI18N
37
static public final String JavaDoc INIT_PARAM = "InitParam"; // NOI18N
38
static public final String JavaDoc SOAP_HEADER = "SoapHeader"; // NOI18N
39
static public final String JavaDoc SOAP_ROLE = "SoapRole"; // NOI18N
40

41     public PortComponentHandlerType() {
42         this(Common.USE_DEFAULT_VALUES);
43     }
44
45     public PortComponentHandlerType(int options)
46     {
47         super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
48         // Properties (see root bean comments for the bean graph)
49
this.createProperty("description", // NOI18N
50
DESCRIPTION,
51             Common.TYPE_0_N | Common.TYPE_STRING | Common.TYPE_KEY,
52             java.lang.String JavaDoc.class);
53         this.createAttribute(DESCRIPTION, "id", "Id",
54                         AttrProp.CDATA | AttrProp.IMPLIED,
55                         null, null);
56         this.createAttribute(DESCRIPTION, "xml:lang", "XmlLang",
57                         AttrProp.CDATA | AttrProp.IMPLIED,
58                         null, null);
59         this.createProperty("display-name", // NOI18N
60
DISPLAY_NAME,
61             Common.TYPE_0_N | Common.TYPE_STRING | Common.TYPE_KEY,
62             java.lang.String JavaDoc.class);
63         this.createAttribute(DISPLAY_NAME, "id", "Id",
64                         AttrProp.CDATA | AttrProp.IMPLIED,
65                         null, null);
66         this.createAttribute(DISPLAY_NAME, "xml:lang", "XmlLang",
67                         AttrProp.CDATA | AttrProp.IMPLIED,
68                         null, null);
69         this.createProperty("icon", // NOI18N
70
ICON,
71             Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY,
72             IconType.class);
73         this.createAttribute(ICON, "xml:lang", "XmlLang",
74                         AttrProp.CDATA | AttrProp.IMPLIED,
75                         null, null);
76         this.createAttribute(ICON, "id", "Id",
77                         AttrProp.CDATA | AttrProp.IMPLIED,
78                         null, null);
79         this.createProperty("handler-name", // NOI18N
80
HANDLER_NAME,
81             Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY,
82             java.lang.String JavaDoc.class);
83         this.createAttribute(HANDLER_NAME, "id", "Id",
84                         AttrProp.CDATA | AttrProp.IMPLIED,
85                         null, null);
86         this.createProperty("handler-class", // NOI18N
87
HANDLER_CLASS,
88             Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY,
89             java.lang.String JavaDoc.class);
90         this.createProperty("init-param", // NOI18N
91
INIT_PARAM,
92             Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY,
93             ParamValueType.class);
94         this.createAttribute(INIT_PARAM, "id", "Id",
95                         AttrProp.CDATA | AttrProp.IMPLIED,
96                         null, null);
97         this.createProperty("soap-header", // NOI18N
98
SOAP_HEADER,
99             Common.TYPE_0_N | Common.TYPE_STRING | Common.TYPE_KEY,
100             javax.xml.namespace.QName JavaDoc.class);
101         this.createAttribute(SOAP_HEADER, "id", "Id",
102                         AttrProp.CDATA | AttrProp.IMPLIED,
103                         null, null);
104         this.createProperty("soap-role", // NOI18N
105
SOAP_ROLE,
106             Common.TYPE_0_N | Common.TYPE_STRING | Common.TYPE_KEY,
107             java.lang.String JavaDoc.class);
108         this.createAttribute(SOAP_ROLE, "id", "Id",
109                         AttrProp.CDATA | AttrProp.IMPLIED,
110                         null, null);
111         this.initialize(options);
112     }
113
114     // Setting the default values of the properties
115
void initialize(int options)
116     {
117
118     }
119
120     // This attribute is an array, possibly empty
121
public void setDescription(int index, java.lang.String JavaDoc value) {
122         this.setValue(DESCRIPTION, index, value);
123     }
124
125     //
126
public java.lang.String JavaDoc getDescription(int index) {
127         return (java.lang.String JavaDoc)this.getValue(DESCRIPTION, index);
128     }
129
130     // This attribute is an array, possibly empty
131
public void setDescription(java.lang.String JavaDoc[] value) {
132         this.setValue(DESCRIPTION, value);
133     }
134
135     //
136
public java.lang.String JavaDoc[] getDescription() {
137         return (java.lang.String JavaDoc[])this.getValues(DESCRIPTION);
138     }
139
140     // Return the number of properties
141
public int sizeDescription() {
142         return this.size(DESCRIPTION);
143     }
144
145     // Add a new element returning its index in the list
146
public int addDescription(java.lang.String JavaDoc value) {
147         return this.addValue(DESCRIPTION, value);
148     }
149
150     //
151
// Remove an element using its reference
152
// Returns the index the element had in the list
153
//
154
public int removeDescription(java.lang.String JavaDoc value) {
155         return this.removeValue(DESCRIPTION, value);
156     }
157
158     // This attribute is an array, possibly empty
159
public void setDisplayName(int index, java.lang.String JavaDoc value) {
160         this.setValue(DISPLAY_NAME, index, value);
161     }
162
163     //
164
public java.lang.String JavaDoc getDisplayName(int index) {
165         return (java.lang.String JavaDoc)this.getValue(DISPLAY_NAME, index);
166     }
167
168     // This attribute is an array, possibly empty
169
public void setDisplayName(java.lang.String JavaDoc[] value) {
170         this.setValue(DISPLAY_NAME, value);
171     }
172
173     //
174
public java.lang.String JavaDoc[] getDisplayName() {
175         return (java.lang.String JavaDoc[])this.getValues(DISPLAY_NAME);
176     }
177
178     // Return the number of properties
179
public int sizeDisplayName() {
180         return this.size(DISPLAY_NAME);
181     }
182
183     // Add a new element returning its index in the list
184
public int addDisplayName(java.lang.String JavaDoc value) {
185         return this.addValue(DISPLAY_NAME, value);
186     }
187
188     //
189
// Remove an element using its reference
190
// Returns the index the element had in the list
191
//
192
public int removeDisplayName(java.lang.String JavaDoc value) {
193         return this.removeValue(DISPLAY_NAME, value);
194     }
195
196     // This attribute is an array, possibly empty
197
public void setIcon(int index, IconType value) {
198         this.setValue(ICON, index, value);
199     }
200
201     //
202
public IconType getIcon(int index) {
203         return (IconType)this.getValue(ICON, index);
204     }
205
206     // This attribute is an array, possibly empty
207
public void setIcon(IconType[] value) {
208         this.setValue(ICON, value);
209     }
210
211     //
212
public IconType[] getIcon() {
213         return (IconType[])this.getValues(ICON);
214     }
215
216     // Return the number of properties
217
public int sizeIcon() {
218         return this.size(ICON);
219     }
220
221     // Add a new element returning its index in the list
222
public int addIcon(com.sun.enterprise.tools.common.dd.webservice.IconType value) {
223         return this.addValue(ICON, value);
224     }
225
226     //
227
// Remove an element using its reference
228
// Returns the index the element had in the list
229
//
230
public int removeIcon(com.sun.enterprise.tools.common.dd.webservice.IconType value) {
231         return this.removeValue(ICON, value);
232     }
233
234     // This attribute is mandatory
235
public void setHandlerName(java.lang.String JavaDoc value) {
236         this.setValue(HANDLER_NAME, value);
237     }
238
239     //
240
public java.lang.String JavaDoc getHandlerName() {
241         return (java.lang.String JavaDoc)this.getValue(HANDLER_NAME);
242     }
243
244     // This attribute is mandatory
245
public void setHandlerClass(java.lang.String JavaDoc value) {
246         this.setValue(HANDLER_CLASS, value);
247     }
248
249     //
250
public java.lang.String JavaDoc getHandlerClass() {
251         return (java.lang.String JavaDoc)this.getValue(HANDLER_CLASS);
252     }
253
254     // This attribute is an array, possibly empty
255
public void setInitParam(int index, ParamValueType value) {
256         this.setValue(INIT_PARAM, index, value);
257     }
258
259     //
260
public ParamValueType getInitParam(int index) {
261         return (ParamValueType)this.getValue(INIT_PARAM, index);
262     }
263
264     // This attribute is an array, possibly empty
265
public void setInitParam(ParamValueType[] value) {
266         this.setValue(INIT_PARAM, value);
267     }
268
269     //
270
public ParamValueType[] getInitParam() {
271         return (ParamValueType[])this.getValues(INIT_PARAM);
272     }
273
274     // Return the number of properties
275
public int sizeInitParam() {
276         return this.size(INIT_PARAM);
277     }
278
279     // Add a new element returning its index in the list
280
public int addInitParam(com.sun.enterprise.tools.common.dd.webservice.ParamValueType value) {
281         return this.addValue(INIT_PARAM, value);
282     }
283
284     //
285
// Remove an element using its reference
286
// Returns the index the element had in the list
287
//
288
public int removeInitParam(com.sun.enterprise.tools.common.dd.webservice.ParamValueType value) {
289         return this.removeValue(INIT_PARAM, value);
290     }
291
292     // This attribute is an array, possibly empty
293
public void setSoapHeader(int index, javax.xml.namespace.QName JavaDoc value) {
294         this.setValue(SOAP_HEADER, index, value);
295     }
296
297     //
298
public javax.xml.namespace.QName JavaDoc getSoapHeader(int index) {
299         return (javax.xml.namespace.QName JavaDoc)this.getValue(SOAP_HEADER, index);
300     }
301
302     // This attribute is an array, possibly empty
303
public void setSoapHeader(javax.xml.namespace.QName JavaDoc[] value) {
304         this.setValue(SOAP_HEADER, value);
305     }
306
307     //
308
public javax.xml.namespace.QName JavaDoc[] getSoapHeader() {
309         return (javax.xml.namespace.QName JavaDoc[])this.getValues(SOAP_HEADER);
310     }
311
312     // Return the number of properties
313
public int sizeSoapHeader() {
314         return this.size(SOAP_HEADER);
315     }
316
317     // Add a new element returning its index in the list
318
public int addSoapHeader(javax.xml.namespace.QName JavaDoc value) {
319         return this.addValue(SOAP_HEADER, value);
320     }
321
322     //
323
// Remove an element using its reference
324
// Returns the index the element had in the list
325
//
326
public int removeSoapHeader(javax.xml.namespace.QName JavaDoc value) {
327         return this.removeValue(SOAP_HEADER, value);
328     }
329
330     // This attribute is an array, possibly empty
331
public void setSoapRole(int index, java.lang.String JavaDoc value) {
332         this.setValue(SOAP_ROLE, index, value);
333     }
334
335     //
336
public java.lang.String JavaDoc getSoapRole(int index) {
337         return (java.lang.String JavaDoc)this.getValue(SOAP_ROLE, index);
338     }
339
340     // This attribute is an array, possibly empty
341
public void setSoapRole(java.lang.String JavaDoc[] value) {
342         this.setValue(SOAP_ROLE, value);
343     }
344
345     //
346
public java.lang.String JavaDoc[] getSoapRole() {
347         return (java.lang.String JavaDoc[])this.getValues(SOAP_ROLE);
348     }
349
350     // Return the number of properties
351
public int sizeSoapRole() {
352         return this.size(SOAP_ROLE);
353     }
354
355     // Add a new element returning its index in the list
356
public int addSoapRole(java.lang.String JavaDoc value) {
357         return this.addValue(SOAP_ROLE, value);
358     }
359
360     //
361
// Remove an element using its reference
362
// Returns the index the element had in the list
363
//
364
public int removeSoapRole(java.lang.String JavaDoc value) {
365         return this.removeValue(SOAP_ROLE, value);
366     }
367
368     //
369
public static void addComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
370         comparators.add(c);
371     }
372
373     //
374
public static void removeComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
375         comparators.remove(c);
376     }
377     public void validate() throws org.netbeans.modules.schema2beans.ValidateException {
378     }
379
380     // Dump the content of this bean returning it as a String
381
public void dump(StringBuffer JavaDoc str, String JavaDoc indent){
382         String JavaDoc s;
383         Object JavaDoc o;
384         org.netbeans.modules.schema2beans.BaseBean n;
385         str.append(indent);
386         str.append("Description["+this.sizeDescription()+"]"); // NOI18N
387
for(int i=0; i<this.sizeDescription(); i++)
388         {
389             str.append(indent+"\t");
390             str.append("#"+i+":");
391             str.append(indent+"\t"); // NOI18N
392
str.append("<"); // NOI18N
393
s = this.getDescription(i);
394             str.append((s==null?"null":s.trim())); // NOI18N
395
str.append(">\n"); // NOI18N
396
this.dumpAttributes(DESCRIPTION, i, str, indent);
397         }
398
399         str.append(indent);
400         str.append("DisplayName["+this.sizeDisplayName()+"]"); // NOI18N
401
for(int i=0; i<this.sizeDisplayName(); i++)
402         {
403             str.append(indent+"\t");
404             str.append("#"+i+":");
405             str.append(indent+"\t"); // NOI18N
406
str.append("<"); // NOI18N
407
s = this.getDisplayName(i);
408             str.append((s==null?"null":s.trim())); // NOI18N
409
str.append(">\n"); // NOI18N
410
this.dumpAttributes(DISPLAY_NAME, i, str, indent);
411         }
412
413         str.append(indent);
414         str.append("Icon["+this.sizeIcon()+"]"); // NOI18N
415
for(int i=0; i<this.sizeIcon(); i++)
416         {
417             str.append(indent+"\t");
418             str.append("#"+i+":");
419             n = (org.netbeans.modules.schema2beans.BaseBean) this.getIcon(i);
420             if (n != null)
421                 n.dump(str, indent + "\t"); // NOI18N
422
else
423                 str.append(indent+"\tnull"); // NOI18N
424
this.dumpAttributes(ICON, i, str, indent);
425         }
426
427         str.append(indent);
428         str.append("HandlerName"); // NOI18N
429
str.append(indent+"\t"); // NOI18N
430
str.append("<"); // NOI18N
431
s = this.getHandlerName();
432         str.append((s==null?"null":s.trim())); // NOI18N
433
str.append(">\n"); // NOI18N
434
this.dumpAttributes(HANDLER_NAME, 0, str, indent);
435
436         str.append(indent);
437         str.append("HandlerClass"); // NOI18N
438
str.append(indent+"\t"); // NOI18N
439
str.append("<"); // NOI18N
440
s = this.getHandlerClass();
441         str.append((s==null?"null":s.trim())); // NOI18N
442
str.append(">\n"); // NOI18N
443
this.dumpAttributes(HANDLER_CLASS, 0, str, indent);
444
445         str.append(indent);
446         str.append("InitParam["+this.sizeInitParam()+"]"); // NOI18N
447
for(int i=0; i<this.sizeInitParam(); i++)
448         {
449             str.append(indent+"\t");
450             str.append("#"+i+":");
451             n = (org.netbeans.modules.schema2beans.BaseBean) this.getInitParam(i);
452             if (n != null)
453                 n.dump(str, indent + "\t"); // NOI18N
454
else
455                 str.append(indent+"\tnull"); // NOI18N
456
this.dumpAttributes(INIT_PARAM, i, str, indent);
457         }
458
459         str.append(indent);
460         str.append("SoapHeader["+this.sizeSoapHeader()+"]"); // NOI18N
461
for(int i=0; i<this.sizeSoapHeader(); i++)
462         {
463             str.append(indent+"\t");
464             str.append("#"+i+":");
465             str.append(indent+"\t"); // NOI18N
466
str.append("<"); // NOI18N
467
o = this.getSoapHeader(i);
468             str.append((o==null?"null":o.toString().trim())); // NOI18N
469
str.append(">\n"); // NOI18N
470
this.dumpAttributes(SOAP_HEADER, i, str, indent);
471         }
472
473         str.append(indent);
474         str.append("SoapRole["+this.sizeSoapRole()+"]"); // NOI18N
475
for(int i=0; i<this.sizeSoapRole(); i++)
476         {
477             str.append(indent+"\t");
478             str.append("#"+i+":");
479             str.append(indent+"\t"); // NOI18N
480
str.append("<"); // NOI18N
481
s = this.getSoapRole(i);
482             str.append((s==null?"null":s.trim())); // NOI18N
483
str.append(">\n"); // NOI18N
484
this.dumpAttributes(SOAP_ROLE, i, str, indent);
485         }
486
487     }
488     public String JavaDoc dumpBeanNode(){
489         StringBuffer JavaDoc str = new StringBuffer JavaDoc();
490         str.append("PortComponentHandlerType\n"); // NOI18N
491
this.dump(str, "\n "); // NOI18N
492
return str.toString();
493     }}
494
495 // END_NOI18N
496

497
498 /*
499  * The contents of this file are subject to the terms
500  * of the Common Development and Distribution License
501  * (the License). You may not use this file except in
502  * compliance with the License.
503  *
504  * You can obtain a copy of the license at
505  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
506  * glassfish/bootstrap/legal/CDDLv1.0.txt.
507  * See the License for the specific language governing
508  * permissions and limitations under the License.
509  *
510  * When distributing Covered Code, include this CDDL
511  * Header Notice in each file and include the License file
512  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
513  * If applicable, add the following below the CDDL Header,
514  * with the fields enclosed by brackets [] replaced by
515  * you own identifying information:
516  * "Portions Copyrighted [year] [name of copyright owner]"
517  *
518  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
519  */

520
Popular Tags