KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > calipso > reportgenerator > reportdefinitions > DrillDownDefinitionDescriptor


1 /*
2  * This class was automatically generated with
3  * <a HREF="http://www.castor.org">Castor 0.9.4.3</a>, using an XML
4  * Schema.
5  * $Id$
6  */

7
8 package com.calipso.reportgenerator.reportdefinitions;
9
10   //---------------------------------/
11
//- Imported classes and packages -/
12
//---------------------------------/
13

14 import org.exolab.castor.mapping.AccessMode;
15 import org.exolab.castor.xml.TypeValidator;
16 import org.exolab.castor.xml.XMLFieldDescriptor;
17 import org.exolab.castor.xml.validators.*;
18
19 /**
20  * Class DrillDownDefinitionDescriptor.
21  *
22  * @version $Revision$ $Date$
23  */

24 public class DrillDownDefinitionDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {
25
26
27       //--------------------------/
28
//- Class/Member Variables -/
29
//--------------------------/
30

31     /**
32      * Field nsPrefix
33      */

34     private java.lang.String JavaDoc nsPrefix;
35
36     /**
37      * Field nsURI
38      */

39     private java.lang.String JavaDoc nsURI;
40
41     /**
42      * Field xmlName
43      */

44     private java.lang.String JavaDoc xmlName;
45
46     /**
47      * Field identity
48      */

49     private org.exolab.castor.xml.XMLFieldDescriptor identity;
50
51
52       //----------------/
53
//- Constructors -/
54
//----------------/
55

56     public DrillDownDefinitionDescriptor() {
57         super();
58         xmlName = "DrillDownDefinition";
59         
60         //-- set grouping compositor
61
setCompositorAsSequence();
62         org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
63         org.exolab.castor.xml.XMLFieldHandler handler = null;
64         org.exolab.castor.xml.FieldValidator fieldValidator = null;
65         //-- initialize attribute descriptors
66

67         //-- _name
68
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_name", "Name", org.exolab.castor.xml.NodeType.Attribute);
69         desc.setImmutable(true);
70         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
71             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
72                 throws IllegalStateException JavaDoc
73             {
74                 DrillDownDefinition target = (DrillDownDefinition) object;
75                 return target.getName();
76             }
77             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
78                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
79             {
80                 try {
81                     DrillDownDefinition target = (DrillDownDefinition) object;
82                     target.setName( (java.lang.String JavaDoc) value);
83                 }
84                 catch (java.lang.Exception JavaDoc ex) {
85                     throw new IllegalStateException JavaDoc(ex.toString());
86                 }
87             }
88             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
89                 return null;
90             }
91         } );
92         desc.setHandler(handler);
93         desc.setRequired(true);
94         addFieldDescriptor(desc);
95         
96         //-- validation code for: _name
97
fieldValidator = new org.exolab.castor.xml.FieldValidator();
98         fieldValidator.setMinOccurs(1);
99         { //-- local scope
100
StringValidator typeValidator = new StringValidator();
101             typeValidator.setWhiteSpace("preserve");
102             fieldValidator.setValidator(typeValidator);
103         }
104         desc.setValidator(fieldValidator);
105         //-- _description
106
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_description", "Description", org.exolab.castor.xml.NodeType.Attribute);
107         desc.setImmutable(true);
108         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
109             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
110                 throws IllegalStateException JavaDoc
111             {
112                 DrillDownDefinition target = (DrillDownDefinition) object;
113                 return target.getDescription();
114             }
115             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
116                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
117             {
118                 try {
119                     DrillDownDefinition target = (DrillDownDefinition) object;
120                     target.setDescription( (java.lang.String JavaDoc) value);
121                 }
122                 catch (java.lang.Exception JavaDoc ex) {
123                     throw new IllegalStateException JavaDoc(ex.toString());
124                 }
125             }
126             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
127                 return null;
128             }
129         } );
130         desc.setHandler(handler);
131         desc.setRequired(true);
132         addFieldDescriptor(desc);
133         
134         //-- validation code for: _description
135
fieldValidator = new org.exolab.castor.xml.FieldValidator();
136         fieldValidator.setMinOccurs(1);
137         { //-- local scope
138
StringValidator typeValidator = new StringValidator();
139             typeValidator.setWhiteSpace("preserve");
140             fieldValidator.setValidator(typeValidator);
141         }
142         desc.setValidator(fieldValidator);
143         //-- _targetReportDefinitionID
144
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_targetReportDefinitionID", "TargetReportDefinitionID", org.exolab.castor.xml.NodeType.Attribute);
145         desc.setImmutable(true);
146         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
147             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
148                 throws IllegalStateException JavaDoc
149             {
150                 DrillDownDefinition target = (DrillDownDefinition) object;
151                 return target.getTargetReportDefinitionID();
152             }
153             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
154                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
155             {
156                 try {
157                     DrillDownDefinition target = (DrillDownDefinition) object;
158                     target.setTargetReportDefinitionID( (java.lang.String JavaDoc) value);
159                 }
160                 catch (java.lang.Exception JavaDoc ex) {
161                     throw new IllegalStateException JavaDoc(ex.toString());
162                 }
163             }
164             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
165                 return null;
166             }
167         } );
168         desc.setHandler(handler);
169         desc.setRequired(true);
170         addFieldDescriptor(desc);
171         
172         //-- validation code for: _targetReportDefinitionID
173
fieldValidator = new org.exolab.castor.xml.FieldValidator();
174         fieldValidator.setMinOccurs(1);
175         { //-- local scope
176
StringValidator typeValidator = new StringValidator();
177             typeValidator.setWhiteSpace("preserve");
178             fieldValidator.setValidator(typeValidator);
179         }
180         desc.setValidator(fieldValidator);
181         //-- _type
182
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.types.DrillDownDefinitionTypeType.class, "_type", "Type", org.exolab.castor.xml.NodeType.Attribute);
183         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
184             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
185                 throws IllegalStateException JavaDoc
186             {
187                 DrillDownDefinition target = (DrillDownDefinition) object;
188                 return target.getType();
189             }
190             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
191                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
192             {
193                 try {
194                     DrillDownDefinition target = (DrillDownDefinition) object;
195                     target.setType( (com.calipso.reportgenerator.reportdefinitions.types.DrillDownDefinitionTypeType) value);
196                 }
197                 catch (java.lang.Exception JavaDoc ex) {
198                     throw new IllegalStateException JavaDoc(ex.toString());
199                 }
200             }
201             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
202                 return null;
203             }
204         } );
205         desc.setHandler( new org.exolab.castor.xml.handlers.EnumFieldHandler(com.calipso.reportgenerator.reportdefinitions.types.DrillDownDefinitionTypeType.class, handler));
206         desc.setImmutable(true);
207         addFieldDescriptor(desc);
208         
209         //-- validation code for: _type
210
fieldValidator = new org.exolab.castor.xml.FieldValidator();
211         { //-- local scope
212
}
213         desc.setValidator(fieldValidator);
214         //-- initialize element descriptors
215

216         //-- _parameterBindList
217
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.ParameterBind.class, "_parameterBindList", "ParameterBind", org.exolab.castor.xml.NodeType.Element);
218         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
219             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
220                 throws IllegalStateException JavaDoc
221             {
222                 DrillDownDefinition target = (DrillDownDefinition) object;
223                 return target.getParameterBind();
224             }
225             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
226                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
227             {
228                 try {
229                     DrillDownDefinition target = (DrillDownDefinition) object;
230                     target.addParameterBind( (com.calipso.reportgenerator.reportdefinitions.ParameterBind) value);
231                 }
232                 catch (java.lang.Exception JavaDoc ex) {
233                     throw new IllegalStateException JavaDoc(ex.toString());
234                 }
235             }
236             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
237                 return new com.calipso.reportgenerator.reportdefinitions.ParameterBind();
238             }
239         } );
240         desc.setHandler(handler);
241         desc.setMultivalued(true);
242         addFieldDescriptor(desc);
243         
244         //-- validation code for: _parameterBindList
245
fieldValidator = new org.exolab.castor.xml.FieldValidator();
246         fieldValidator.setMinOccurs(0);
247         { //-- local scope
248
}
249         desc.setValidator(fieldValidator);
250         //-- _dimensionBindList
251
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.DimensionBind.class, "_dimensionBindList", "DimensionBind", org.exolab.castor.xml.NodeType.Element);
252         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
253             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
254                 throws IllegalStateException JavaDoc
255             {
256                 DrillDownDefinition target = (DrillDownDefinition) object;
257                 return target.getDimensionBind();
258             }
259             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
260                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
261             {
262                 try {
263                     DrillDownDefinition target = (DrillDownDefinition) object;
264                     target.addDimensionBind( (com.calipso.reportgenerator.reportdefinitions.DimensionBind) value);
265                 }
266                 catch (java.lang.Exception JavaDoc ex) {
267                     throw new IllegalStateException JavaDoc(ex.toString());
268                 }
269             }
270             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
271                 return new com.calipso.reportgenerator.reportdefinitions.DimensionBind();
272             }
273         } );
274         desc.setHandler(handler);
275         desc.setMultivalued(true);
276         addFieldDescriptor(desc);
277         
278         //-- validation code for: _dimensionBindList
279
fieldValidator = new org.exolab.castor.xml.FieldValidator();
280         fieldValidator.setMinOccurs(0);
281         { //-- local scope
282
}
283         desc.setValidator(fieldValidator);
284     } //-- com.calipso.reportgenerator.reportdefinitions.DrillDownDefinitionDescriptor()
285

286
287       //-----------/
288
//- Methods -/
289
//-----------/
290

291     /**
292      * Method getAccessMode
293      */

294     public org.exolab.castor.mapping.AccessMode getAccessMode()
295     {
296         return null;
297     } //-- org.exolab.castor.mapping.AccessMode getAccessMode()
298

299     /**
300      * Method getExtends
301      */

302     public org.exolab.castor.mapping.ClassDescriptor getExtends()
303     {
304         return null;
305     } //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
306

307     /**
308      * Method getIdentity
309      */

310     public org.exolab.castor.mapping.FieldDescriptor getIdentity()
311     {
312         return identity;
313     } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
314

315     /**
316      * Method getJavaClass
317      */

318     public java.lang.Class JavaDoc getJavaClass()
319     {
320         return com.calipso.reportgenerator.reportdefinitions.DrillDownDefinition.class;
321     } //-- java.lang.Class getJavaClass()
322

323     /**
324      * Method getNameSpacePrefix
325      */

326     public java.lang.String JavaDoc getNameSpacePrefix()
327     {
328         return nsPrefix;
329     } //-- java.lang.String getNameSpacePrefix()
330

331     /**
332      * Method getNameSpaceURI
333      */

334     public java.lang.String JavaDoc getNameSpaceURI()
335     {
336         return nsURI;
337     } //-- java.lang.String getNameSpaceURI()
338

339     /**
340      * Method getValidator
341      */

342     public org.exolab.castor.xml.TypeValidator getValidator()
343     {
344         return this;
345     } //-- org.exolab.castor.xml.TypeValidator getValidator()
346

347     /**
348      * Method getXMLName
349      */

350     public java.lang.String JavaDoc getXMLName()
351     {
352         return xmlName;
353     } //-- java.lang.String getXMLName()
354

355 }
356
Popular Tags