KickJava   Java API By Example, From Geeks To Geeks.

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


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 ReportSourceDefinitionDescriptor.
21  *
22  * @version $Revision$ $Date$
23  */

24 public class ReportSourceDefinitionDescriptor 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 ReportSourceDefinitionDescriptor() {
57         super();
58         xmlName = "ReportSourceDefinition";
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         //-- _id
68
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_id", "Id", 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                 ReportSourceDefinition target = (ReportSourceDefinition) object;
75                 return target.getId();
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                     ReportSourceDefinition target = (ReportSourceDefinition) object;
82                     target.setId( (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: _id
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         //-- _cached
106
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_cached", "Cached", org.exolab.castor.xml.NodeType.Attribute);
107         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
108             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
109                 throws IllegalStateException JavaDoc
110             {
111                 ReportSourceDefinition target = (ReportSourceDefinition) object;
112                 if(!target.hasCached())
113                     return null;
114                 return new Boolean JavaDoc(target.getCached());
115             }
116             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
117                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
118             {
119                 try {
120                     ReportSourceDefinition target = (ReportSourceDefinition) object;
121                     // ignore null values for non optional primitives
122
if (value == null) return;
123                     
124                     target.setCached( ((Boolean JavaDoc)value).booleanValue());
125                 }
126                 catch (java.lang.Exception JavaDoc ex) {
127                     throw new IllegalStateException JavaDoc(ex.toString());
128                 }
129             }
130             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
131                 return null;
132             }
133         } );
134         desc.setHandler(handler);
135         desc.setRequired(true);
136         addFieldDescriptor(desc);
137         
138         //-- validation code for: _cached
139
fieldValidator = new org.exolab.castor.xml.FieldValidator();
140         fieldValidator.setMinOccurs(1);
141         { //-- local scope
142
BooleanValidator typeValidator = new BooleanValidator();
143             fieldValidator.setValidator(typeValidator);
144         }
145         desc.setValidator(fieldValidator);
146         //-- _expiration
147
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.math.BigDecimal JavaDoc.class, "_expiration", "Expiration", org.exolab.castor.xml.NodeType.Attribute);
148         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
149             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
150                 throws IllegalStateException JavaDoc
151             {
152                 ReportSourceDefinition target = (ReportSourceDefinition) object;
153                 return target.getExpiration();
154             }
155             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
156                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
157             {
158                 try {
159                     ReportSourceDefinition target = (ReportSourceDefinition) object;
160                     target.setExpiration( (java.math.BigDecimal JavaDoc) value);
161                 }
162                 catch (java.lang.Exception JavaDoc ex) {
163                     throw new IllegalStateException JavaDoc(ex.toString());
164                 }
165             }
166             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
167                 return new java.math.BigDecimal JavaDoc(0);
168             }
169         } );
170         desc.setHandler(handler);
171         desc.setImmutable(true);
172         addFieldDescriptor(desc);
173         
174         //-- validation code for: _expiration
175
fieldValidator = new org.exolab.castor.xml.FieldValidator();
176         { //-- local scope
177
DecimalValidator typeValidator = new DecimalValidator();
178             fieldValidator.setValidator(typeValidator);
179         }
180         desc.setValidator(fieldValidator);
181         //-- _incrementalDimension
182
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_incrementalDimension", "IncrementalDimension", org.exolab.castor.xml.NodeType.Attribute);
183         desc.setImmutable(true);
184         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
185             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
186                 throws IllegalStateException JavaDoc
187             {
188                 ReportSourceDefinition target = (ReportSourceDefinition) object;
189                 return target.getIncrementalDimension();
190             }
191             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
192                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
193             {
194                 try {
195                     ReportSourceDefinition target = (ReportSourceDefinition) object;
196                     target.setIncrementalDimension( (java.lang.String JavaDoc) value);
197                 }
198                 catch (java.lang.Exception JavaDoc ex) {
199                     throw new IllegalStateException JavaDoc(ex.toString());
200                 }
201             }
202             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
203                 return null;
204             }
205         } );
206         desc.setHandler(handler);
207         addFieldDescriptor(desc);
208         
209         //-- validation code for: _incrementalDimension
210
fieldValidator = new org.exolab.castor.xml.FieldValidator();
211         { //-- local scope
212
StringValidator typeValidator = new StringValidator();
213             typeValidator.setWhiteSpace("preserve");
214             fieldValidator.setValidator(typeValidator);
215         }
216         desc.setValidator(fieldValidator);
217         //-- _multilanguage
218
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_multilanguage", "Multilanguage", org.exolab.castor.xml.NodeType.Attribute);
219         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
220             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
221                 throws IllegalStateException JavaDoc
222             {
223                 ReportSourceDefinition target = (ReportSourceDefinition) object;
224                 if(!target.hasMultilanguage())
225                     return null;
226                 return new Boolean JavaDoc(target.getMultilanguage());
227             }
228             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
229                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
230             {
231                 try {
232                     ReportSourceDefinition target = (ReportSourceDefinition) object;
233                     // if null, use delete method for optional primitives
234
if (value == null) {
235                         target.deleteMultilanguage();
236                         return;
237                     }
238                     target.setMultilanguage( ((Boolean JavaDoc)value).booleanValue());
239                 }
240                 catch (java.lang.Exception JavaDoc ex) {
241                     throw new IllegalStateException JavaDoc(ex.toString());
242                 }
243             }
244             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
245                 return null;
246             }
247         } );
248         desc.setHandler(handler);
249         addFieldDescriptor(desc);
250         
251         //-- validation code for: _multilanguage
252
fieldValidator = new org.exolab.castor.xml.FieldValidator();
253         { //-- local scope
254
BooleanValidator typeValidator = new BooleanValidator();
255             fieldValidator.setValidator(typeValidator);
256         }
257         desc.setValidator(fieldValidator);
258         //-- _maxRowsDimensionReference
259
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_maxRowsDimensionReference", "MaxRowsDimensionReference", org.exolab.castor.xml.NodeType.Attribute);
260         desc.setImmutable(true);
261         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
262             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
263                 throws IllegalStateException JavaDoc
264             {
265                 ReportSourceDefinition target = (ReportSourceDefinition) object;
266                 return target.getMaxRowsDimensionReference();
267             }
268             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
269                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
270             {
271                 try {
272                     ReportSourceDefinition target = (ReportSourceDefinition) object;
273                     target.setMaxRowsDimensionReference( (java.lang.String JavaDoc) value);
274                 }
275                 catch (java.lang.Exception JavaDoc ex) {
276                     throw new IllegalStateException JavaDoc(ex.toString());
277                 }
278             }
279             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
280                 return null;
281             }
282         } );
283         desc.setHandler(handler);
284         addFieldDescriptor(desc);
285         
286         //-- validation code for: _maxRowsDimensionReference
287
fieldValidator = new org.exolab.castor.xml.FieldValidator();
288         { //-- local scope
289
StringValidator typeValidator = new StringValidator();
290             typeValidator.setWhiteSpace("preserve");
291             fieldValidator.setValidator(typeValidator);
292         }
293         desc.setValidator(fieldValidator);
294         //-- _maxRowCount
295
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_maxRowCount", "MaxRowCount", org.exolab.castor.xml.NodeType.Attribute);
296         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
297             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
298                 throws IllegalStateException JavaDoc
299             {
300                 ReportSourceDefinition target = (ReportSourceDefinition) object;
301                 if(!target.hasMaxRowCount())
302                     return null;
303                 return new Integer JavaDoc(target.getMaxRowCount());
304             }
305             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
306                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
307             {
308                 try {
309                     ReportSourceDefinition target = (ReportSourceDefinition) object;
310                     // if null, use delete method for optional primitives
311
if (value == null) {
312                         target.deleteMaxRowCount();
313                         return;
314                     }
315                     target.setMaxRowCount( ((Integer JavaDoc)value).intValue());
316                 }
317                 catch (java.lang.Exception JavaDoc ex) {
318                     throw new IllegalStateException JavaDoc(ex.toString());
319                 }
320             }
321             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
322                 return null;
323             }
324         } );
325         desc.setHandler(handler);
326         addFieldDescriptor(desc);
327         
328         //-- validation code for: _maxRowCount
329
fieldValidator = new org.exolab.castor.xml.FieldValidator();
330         { //-- local scope
331
IntegerValidator typeValidator = new IntegerValidator();
332             fieldValidator.setValidator(typeValidator);
333         }
334         desc.setValidator(fieldValidator);
335         //-- _datawarehouseSaved
336
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_datawarehouseSaved", "DatawarehouseSaved", org.exolab.castor.xml.NodeType.Attribute);
337         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
338             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
339                 throws IllegalStateException JavaDoc
340             {
341                 ReportSourceDefinition target = (ReportSourceDefinition) object;
342                 if(!target.hasDatawarehouseSaved())
343                     return null;
344                 return new Boolean JavaDoc(target.getDatawarehouseSaved());
345             }
346             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
347                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
348             {
349                 try {
350                     ReportSourceDefinition target = (ReportSourceDefinition) object;
351                     // if null, use delete method for optional primitives
352
if (value == null) {
353                         target.deleteDatawarehouseSaved();
354                         return;
355                     }
356                     target.setDatawarehouseSaved( ((Boolean JavaDoc)value).booleanValue());
357                 }
358                 catch (java.lang.Exception JavaDoc ex) {
359                     throw new IllegalStateException JavaDoc(ex.toString());
360                 }
361             }
362             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
363                 return null;
364             }
365         } );
366         desc.setHandler(handler);
367         addFieldDescriptor(desc);
368         
369         //-- validation code for: _datawarehouseSaved
370
fieldValidator = new org.exolab.castor.xml.FieldValidator();
371         { //-- local scope
372
BooleanValidator typeValidator = new BooleanValidator();
373             fieldValidator.setValidator(typeValidator);
374         }
375         desc.setValidator(fieldValidator);
376         //-- initialize element descriptors
377

378         //-- _dimensionSourceDefinitions
379
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinitions.class, "_dimensionSourceDefinitions", "DimensionSourceDefinitions", org.exolab.castor.xml.NodeType.Element);
380         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
381             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
382                 throws IllegalStateException JavaDoc
383             {
384                 ReportSourceDefinition target = (ReportSourceDefinition) object;
385                 return target.getDimensionSourceDefinitions();
386             }
387             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
388                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
389             {
390                 try {
391                     ReportSourceDefinition target = (ReportSourceDefinition) object;
392                     target.setDimensionSourceDefinitions( (com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinitions) value);
393                 }
394                 catch (java.lang.Exception JavaDoc ex) {
395                     throw new IllegalStateException JavaDoc(ex.toString());
396                 }
397             }
398             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
399                 return new com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinitions();
400             }
401         } );
402         desc.setHandler(handler);
403         desc.setRequired(true);
404         desc.setMultivalued(false);
405         addFieldDescriptor(desc);
406         
407         //-- validation code for: _dimensionSourceDefinitions
408
fieldValidator = new org.exolab.castor.xml.FieldValidator();
409         fieldValidator.setMinOccurs(1);
410         { //-- local scope
411
}
412         desc.setValidator(fieldValidator);
413         //-- _metricSourceDefinitions
414
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinitions.class, "_metricSourceDefinitions", "MetricSourceDefinitions", org.exolab.castor.xml.NodeType.Element);
415         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
416             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
417                 throws IllegalStateException JavaDoc
418             {
419                 ReportSourceDefinition target = (ReportSourceDefinition) object;
420                 return target.getMetricSourceDefinitions();
421             }
422             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
423                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
424             {
425                 try {
426                     ReportSourceDefinition target = (ReportSourceDefinition) object;
427                     target.setMetricSourceDefinitions( (com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinitions) value);
428                 }
429                 catch (java.lang.Exception JavaDoc ex) {
430                     throw new IllegalStateException JavaDoc(ex.toString());
431                 }
432             }
433             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
434                 return new com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinitions();
435             }
436         } );
437         desc.setHandler(handler);
438         desc.setRequired(true);
439         desc.setMultivalued(false);
440         addFieldDescriptor(desc);
441         
442         //-- validation code for: _metricSourceDefinitions
443
fieldValidator = new org.exolab.castor.xml.FieldValidator();
444         fieldValidator.setMinOccurs(1);
445         { //-- local scope
446
}
447         desc.setValidator(fieldValidator);
448         //-- _filterDefinitions
449
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.FilterDefinitions.class, "_filterDefinitions", "FilterDefinitions", org.exolab.castor.xml.NodeType.Element);
450         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
451             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
452                 throws IllegalStateException JavaDoc
453             {
454                 ReportSourceDefinition target = (ReportSourceDefinition) object;
455                 return target.getFilterDefinitions();
456             }
457             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
458                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
459             {
460                 try {
461                     ReportSourceDefinition target = (ReportSourceDefinition) object;
462                     target.setFilterDefinitions( (com.calipso.reportgenerator.reportdefinitions.FilterDefinitions) value);
463                 }
464                 catch (java.lang.Exception JavaDoc ex) {
465                     throw new IllegalStateException JavaDoc(ex.toString());
466                 }
467             }
468             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
469                 return new com.calipso.reportgenerator.reportdefinitions.FilterDefinitions();
470             }
471         } );
472         desc.setHandler(handler);
473         desc.setMultivalued(false);
474         addFieldDescriptor(desc);
475         
476         //-- validation code for: _filterDefinitions
477
fieldValidator = new org.exolab.castor.xml.FieldValidator();
478         { //-- local scope
479
}
480         desc.setValidator(fieldValidator);
481         //-- _dataSourceDefinitions
482
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.DataSourceDefinitions.class, "_dataSourceDefinitions", "DataSourceDefinitions", org.exolab.castor.xml.NodeType.Element);
483         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
484             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
485                 throws IllegalStateException JavaDoc
486             {
487                 ReportSourceDefinition target = (ReportSourceDefinition) object;
488                 return target.getDataSourceDefinitions();
489             }
490             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
491                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
492             {
493                 try {
494                     ReportSourceDefinition target = (ReportSourceDefinition) object;
495                     target.setDataSourceDefinitions( (com.calipso.reportgenerator.reportdefinitions.DataSourceDefinitions) value);
496                 }
497                 catch (java.lang.Exception JavaDoc ex) {
498                     throw new IllegalStateException JavaDoc(ex.toString());
499                 }
500             }
501             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
502                 return new com.calipso.reportgenerator.reportdefinitions.DataSourceDefinitions();
503             }
504         } );
505         desc.setHandler(handler);
506         desc.setRequired(true);
507         desc.setMultivalued(false);
508         addFieldDescriptor(desc);
509         
510         //-- validation code for: _dataSourceDefinitions
511
fieldValidator = new org.exolab.castor.xml.FieldValidator();
512         fieldValidator.setMinOccurs(1);
513         { //-- local scope
514
}
515         desc.setValidator(fieldValidator);
516         //-- _parameterValues
517
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.ParameterValues.class, "_parameterValues", "ParameterValues", org.exolab.castor.xml.NodeType.Element);
518         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
519             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
520                 throws IllegalStateException JavaDoc
521             {
522                 ReportSourceDefinition target = (ReportSourceDefinition) object;
523                 return target.getParameterValues();
524             }
525             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
526                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
527             {
528                 try {
529                     ReportSourceDefinition target = (ReportSourceDefinition) object;
530                     target.setParameterValues( (com.calipso.reportgenerator.reportdefinitions.ParameterValues) value);
531                 }
532                 catch (java.lang.Exception JavaDoc ex) {
533                     throw new IllegalStateException JavaDoc(ex.toString());
534                 }
535             }
536             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
537                 return new com.calipso.reportgenerator.reportdefinitions.ParameterValues();
538             }
539         } );
540         desc.setHandler(handler);
541         desc.setMultivalued(false);
542         addFieldDescriptor(desc);
543         
544         //-- validation code for: _parameterValues
545
fieldValidator = new org.exolab.castor.xml.FieldValidator();
546         { //-- local scope
547
}
548         desc.setValidator(fieldValidator);
549         //-- _localizations
550
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.Localizations.class, "_localizations", "Localizations", org.exolab.castor.xml.NodeType.Element);
551         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
552             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
553                 throws IllegalStateException JavaDoc
554             {
555                 ReportSourceDefinition target = (ReportSourceDefinition) object;
556                 return target.getLocalizations();
557             }
558             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
559                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
560             {
561                 try {
562                     ReportSourceDefinition target = (ReportSourceDefinition) object;
563                     target.setLocalizations( (com.calipso.reportgenerator.reportdefinitions.Localizations) value);
564                 }
565                 catch (java.lang.Exception JavaDoc ex) {
566                     throw new IllegalStateException JavaDoc(ex.toString());
567                 }
568             }
569             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
570                 return new com.calipso.reportgenerator.reportdefinitions.Localizations();
571             }
572         } );
573         desc.setHandler(handler);
574         desc.setMultivalued(false);
575         addFieldDescriptor(desc);
576         
577         //-- validation code for: _localizations
578
fieldValidator = new org.exolab.castor.xml.FieldValidator();
579         { //-- local scope
580
}
581         desc.setValidator(fieldValidator);
582     } //-- com.calipso.reportgenerator.reportdefinitions.ReportSourceDefinitionDescriptor()
583

584
585       //-----------/
586
//- Methods -/
587
//-----------/
588

589     /**
590      * Method getAccessMode
591      */

592     public org.exolab.castor.mapping.AccessMode getAccessMode()
593     {
594         return null;
595     } //-- org.exolab.castor.mapping.AccessMode getAccessMode()
596

597     /**
598      * Method getExtends
599      */

600     public org.exolab.castor.mapping.ClassDescriptor getExtends()
601     {
602         return null;
603     } //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
604

605     /**
606      * Method getIdentity
607      */

608     public org.exolab.castor.mapping.FieldDescriptor getIdentity()
609     {
610         return identity;
611     } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
612

613     /**
614      * Method getJavaClass
615      */

616     public java.lang.Class JavaDoc getJavaClass()
617     {
618         return com.calipso.reportgenerator.reportdefinitions.ReportSourceDefinition.class;
619     } //-- java.lang.Class getJavaClass()
620

621     /**
622      * Method getNameSpacePrefix
623      */

624     public java.lang.String JavaDoc getNameSpacePrefix()
625     {
626         return nsPrefix;
627     } //-- java.lang.String getNameSpacePrefix()
628

629     /**
630      * Method getNameSpaceURI
631      */

632     public java.lang.String JavaDoc getNameSpaceURI()
633     {
634         return nsURI;
635     } //-- java.lang.String getNameSpaceURI()
636

637     /**
638      * Method getValidator
639      */

640     public org.exolab.castor.xml.TypeValidator getValidator()
641     {
642         return this;
643     } //-- org.exolab.castor.xml.TypeValidator getValidator()
644

645     /**
646      * Method getXMLName
647      */

648     public java.lang.String JavaDoc getXMLName()
649     {
650         return xmlName;
651     } //-- java.lang.String getXMLName()
652

653 }
654
Popular Tags