KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * This generated bean class ServiceRefHandlerType matches the schema element service-ref_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:50 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 ServiceRefHandlerType 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
static public final String JavaDoc PORT_NAME = "PortName"; // NOI18N
41

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

557
558 /*
559  * The contents of this file are subject to the terms
560  * of the Common Development and Distribution License
561  * (the License). You may not use this file except in
562  * compliance with the License.
563  *
564  * You can obtain a copy of the license at
565  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
566  * glassfish/bootstrap/legal/CDDLv1.0.txt.
567  * See the License for the specific language governing
568  * permissions and limitations under the License.
569  *
570  * When distributing Covered Code, include this CDDL
571  * Header Notice in each file and include the License file
572  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
573  * If applicable, add the following below the CDDL Header,
574  * with the fields enclosed by brackets [] replaced by
575  * you own identifying information:
576  * "Portions Copyrighted [year] [name of copyright owner]"
577  *
578  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
579  */

580
Popular Tags