KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * This generated bean class MessageDestinationType matches the schema element message-destinationType
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 MessageDestinationType 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 MESSAGE_DESTINATION_NAME = "MessageDestinationName"; // NOI18N
36

37     public MessageDestinationType() {
38         this(Common.USE_DEFAULT_VALUES);
39     }
40
41     public MessageDestinationType(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("message-destination-name", // NOI18N
76
MESSAGE_DESTINATION_NAME,
77             Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY,
78             java.lang.String JavaDoc.class);
79         this.createAttribute(MESSAGE_DESTINATION_NAME, "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 mandatory
206
public void setMessageDestinationName(java.lang.String JavaDoc value) {
207         this.setValue(MESSAGE_DESTINATION_NAME, value);
208     }
209
210     //
211
public java.lang.String JavaDoc getMessageDestinationName() {
212         return (java.lang.String JavaDoc)this.getValue(MESSAGE_DESTINATION_NAME);
213     }
214
215     //
216
public static void addComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
217         comparators.add(c);
218     }
219
220     //
221
public static void removeComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
222         comparators.remove(c);
223     }
224     public void validate() throws org.netbeans.modules.schema2beans.ValidateException {
225     }
226
227     // Dump the content of this bean returning it as a String
228
public void dump(StringBuffer JavaDoc str, String JavaDoc indent){
229         String JavaDoc s;
230         Object JavaDoc o;
231         org.netbeans.modules.schema2beans.BaseBean n;
232         str.append(indent);
233         str.append("Description["+this.sizeDescription()+"]"); // NOI18N
234
for(int i=0; i<this.sizeDescription(); i++)
235         {
236             str.append(indent+"\t");
237             str.append("#"+i+":");
238             str.append(indent+"\t"); // NOI18N
239
str.append("<"); // NOI18N
240
s = this.getDescription(i);
241             str.append((s==null?"null":s.trim())); // NOI18N
242
str.append(">\n"); // NOI18N
243
this.dumpAttributes(DESCRIPTION, i, str, indent);
244         }
245
246         str.append(indent);
247         str.append("DisplayName["+this.sizeDisplayName()+"]"); // NOI18N
248
for(int i=0; i<this.sizeDisplayName(); i++)
249         {
250             str.append(indent+"\t");
251             str.append("#"+i+":");
252             str.append(indent+"\t"); // NOI18N
253
str.append("<"); // NOI18N
254
s = this.getDisplayName(i);
255             str.append((s==null?"null":s.trim())); // NOI18N
256
str.append(">\n"); // NOI18N
257
this.dumpAttributes(DISPLAY_NAME, i, str, indent);
258         }
259
260         str.append(indent);
261         str.append("Icon["+this.sizeIcon()+"]"); // NOI18N
262
for(int i=0; i<this.sizeIcon(); i++)
263         {
264             str.append(indent+"\t");
265             str.append("#"+i+":");
266             n = (org.netbeans.modules.schema2beans.BaseBean) this.getIcon(i);
267             if (n != null)
268                 n.dump(str, indent + "\t"); // NOI18N
269
else
270                 str.append(indent+"\tnull"); // NOI18N
271
this.dumpAttributes(ICON, i, str, indent);
272         }
273
274         str.append(indent);
275         str.append("MessageDestinationName"); // NOI18N
276
str.append(indent+"\t"); // NOI18N
277
str.append("<"); // NOI18N
278
s = this.getMessageDestinationName();
279         str.append((s==null?"null":s.trim())); // NOI18N
280
str.append(">\n"); // NOI18N
281
this.dumpAttributes(MESSAGE_DESTINATION_NAME, 0, str, indent);
282
283     }
284     public String JavaDoc dumpBeanNode(){
285         StringBuffer JavaDoc str = new StringBuffer JavaDoc();
286         str.append("MessageDestinationType\n"); // NOI18N
287
this.dump(str, "\n "); // NOI18N
288
return str.toString();
289     }}
290
291 // END_NOI18N
292

293
294 /*
295  * The contents of this file are subject to the terms
296  * of the Common Development and Distribution License
297  * (the License). You may not use this file except in
298  * compliance with the License.
299  *
300  * You can obtain a copy of the license at
301  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
302  * glassfish/bootstrap/legal/CDDLv1.0.txt.
303  * See the License for the specific language governing
304  * permissions and limitations under the License.
305  *
306  * When distributing Covered Code, include this CDDL
307  * Header Notice in each file and include the License file
308  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
309  * If applicable, add the following below the CDDL Header,
310  * with the fields enclosed by brackets [] replaced by
311  * you own identifying information:
312  * "Portions Copyrighted [year] [name of copyright owner]"
313  *
314  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
315  */

316
Popular Tags