KickJava   Java API By Example, From Geeks To Geeks.

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


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

24 public class ReportDefinitionDescriptor 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 ReportDefinitionDescriptor() {
57         super();
58         xmlName = "ReportDefinition";
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                 ReportDefinition target = (ReportDefinition) 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                     ReportDefinition target = (ReportDefinition) 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         //-- _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                 ReportDefinition target = (ReportDefinition) 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                     ReportDefinition target = (ReportDefinition) 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         //-- _reportSource
144
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_reportSource", "ReportSource", 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                 ReportDefinition target = (ReportDefinition) object;
151                 return target.getReportSource();
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                     ReportDefinition target = (ReportDefinition) object;
158                     target.setReportSource( (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: _reportSource
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         //-- _entity
182
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_entity", "Entity", 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                 ReportDefinition target = (ReportDefinition) object;
189                 return target.getEntity();
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                     ReportDefinition target = (ReportDefinition) object;
196                     target.setEntity( (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         desc.setRequired(true);
208         addFieldDescriptor(desc);
209         
210         //-- validation code for: _entity
211
fieldValidator = new org.exolab.castor.xml.FieldValidator();
212         fieldValidator.setMinOccurs(1);
213         { //-- local scope
214
StringValidator typeValidator = new StringValidator();
215             typeValidator.setWhiteSpace("preserve");
216             fieldValidator.setValidator(typeValidator);
217         }
218         desc.setValidator(fieldValidator);
219         //-- _isTransient
220
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_isTransient", "IsTransient", org.exolab.castor.xml.NodeType.Attribute);
221         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
222             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
223                 throws IllegalStateException JavaDoc
224             {
225                 ReportDefinition target = (ReportDefinition) object;
226                 if(!target.hasIsTransient())
227                     return null;
228                 return new Boolean JavaDoc(target.getIsTransient());
229             }
230             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
231                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
232             {
233                 try {
234                     ReportDefinition target = (ReportDefinition) object;
235                     // ignore null values for non optional primitives
236
if (value == null) return;
237                     
238                     target.setIsTransient( ((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         desc.setRequired(true);
250         addFieldDescriptor(desc);
251         
252         //-- validation code for: _isTransient
253
fieldValidator = new org.exolab.castor.xml.FieldValidator();
254         fieldValidator.setMinOccurs(1);
255         { //-- local scope
256
BooleanValidator typeValidator = new BooleanValidator();
257             fieldValidator.setValidator(typeValidator);
258         }
259         desc.setValidator(fieldValidator);
260         //-- _infoPage
261
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_infoPage", "InfoPage", org.exolab.castor.xml.NodeType.Attribute);
262         desc.setImmutable(true);
263         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
264             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
265                 throws IllegalStateException JavaDoc
266             {
267                 ReportDefinition target = (ReportDefinition) object;
268                 return target.getInfoPage();
269             }
270             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
271                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
272             {
273                 try {
274                     ReportDefinition target = (ReportDefinition) object;
275                     target.setInfoPage( (java.lang.String JavaDoc) value);
276                 }
277                 catch (java.lang.Exception JavaDoc ex) {
278                     throw new IllegalStateException JavaDoc(ex.toString());
279                 }
280             }
281             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
282                 return null;
283             }
284         } );
285         desc.setHandler(handler);
286         addFieldDescriptor(desc);
287         
288         //-- validation code for: _infoPage
289
fieldValidator = new org.exolab.castor.xml.FieldValidator();
290         { //-- local scope
291
StringValidator typeValidator = new StringValidator();
292             typeValidator.setWhiteSpace("preserve");
293             fieldValidator.setValidator(typeValidator);
294         }
295         desc.setValidator(fieldValidator);
296         //-- _reportType
297
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.types.ReportDefinitionReportTypeType.class, "_reportType", "ReportType", org.exolab.castor.xml.NodeType.Attribute);
298         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
299             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
300                 throws IllegalStateException JavaDoc
301             {
302                 ReportDefinition target = (ReportDefinition) object;
303                 return target.getReportType();
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                     ReportDefinition target = (ReportDefinition) object;
310                     target.setReportType( (com.calipso.reportgenerator.reportdefinitions.types.ReportDefinitionReportTypeType) value);
311                 }
312                 catch (java.lang.Exception JavaDoc ex) {
313                     throw new IllegalStateException JavaDoc(ex.toString());
314                 }
315             }
316             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
317                 return null;
318             }
319         } );
320         desc.setHandler( new org.exolab.castor.xml.handlers.EnumFieldHandler(com.calipso.reportgenerator.reportdefinitions.types.ReportDefinitionReportTypeType.class, handler));
321         desc.setImmutable(true);
322         desc.setRequired(true);
323         addFieldDescriptor(desc);
324         
325         //-- validation code for: _reportType
326
fieldValidator = new org.exolab.castor.xml.FieldValidator();
327         fieldValidator.setMinOccurs(1);
328         { //-- local scope
329
}
330         desc.setValidator(fieldValidator);
331         //-- _title
332
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_title", "Title", org.exolab.castor.xml.NodeType.Attribute);
333         desc.setImmutable(true);
334         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
335             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
336                 throws IllegalStateException JavaDoc
337             {
338                 ReportDefinition target = (ReportDefinition) object;
339                 return target.getTitle();
340             }
341             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
342                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
343             {
344                 try {
345                     ReportDefinition target = (ReportDefinition) object;
346                     target.setTitle( (java.lang.String JavaDoc) value);
347                 }
348                 catch (java.lang.Exception JavaDoc ex) {
349                     throw new IllegalStateException JavaDoc(ex.toString());
350                 }
351             }
352             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
353                 return null;
354             }
355         } );
356         desc.setHandler(handler);
357         desc.setRequired(true);
358         addFieldDescriptor(desc);
359         
360         //-- validation code for: _title
361
fieldValidator = new org.exolab.castor.xml.FieldValidator();
362         fieldValidator.setMinOccurs(1);
363         { //-- local scope
364
StringValidator typeValidator = new StringValidator();
365             typeValidator.setWhiteSpace("preserve");
366             fieldValidator.setValidator(typeValidator);
367         }
368         desc.setValidator(fieldValidator);
369         //-- _pageHeding
370
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_pageHeding", "PageHeding", org.exolab.castor.xml.NodeType.Attribute);
371         desc.setImmutable(true);
372         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
373             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
374                 throws IllegalStateException JavaDoc
375             {
376                 ReportDefinition target = (ReportDefinition) object;
377                 return target.getPageHeding();
378             }
379             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
380                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
381             {
382                 try {
383                     ReportDefinition target = (ReportDefinition) object;
384                     target.setPageHeding( (java.lang.String JavaDoc) value);
385                 }
386                 catch (java.lang.Exception JavaDoc ex) {
387                     throw new IllegalStateException JavaDoc(ex.toString());
388                 }
389             }
390             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
391                 return null;
392             }
393         } );
394         desc.setHandler(handler);
395         addFieldDescriptor(desc);
396         
397         //-- validation code for: _pageHeding
398
fieldValidator = new org.exolab.castor.xml.FieldValidator();
399         { //-- local scope
400
StringValidator typeValidator = new StringValidator();
401             typeValidator.setWhiteSpace("preserve");
402             fieldValidator.setValidator(typeValidator);
403         }
404         desc.setValidator(fieldValidator);
405         //-- _pageFooter
406
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_pageFooter", "PageFooter", org.exolab.castor.xml.NodeType.Attribute);
407         desc.setImmutable(true);
408         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
409             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
410                 throws IllegalStateException JavaDoc
411             {
412                 ReportDefinition target = (ReportDefinition) object;
413                 return target.getPageFooter();
414             }
415             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
416                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
417             {
418                 try {
419                     ReportDefinition target = (ReportDefinition) object;
420                     target.setPageFooter( (java.lang.String JavaDoc) value);
421                 }
422                 catch (java.lang.Exception JavaDoc ex) {
423                     throw new IllegalStateException JavaDoc(ex.toString());
424                 }
425             }
426             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
427                 return null;
428             }
429         } );
430         desc.setHandler(handler);
431         addFieldDescriptor(desc);
432         
433         //-- validation code for: _pageFooter
434
fieldValidator = new org.exolab.castor.xml.FieldValidator();
435         { //-- local scope
436
StringValidator typeValidator = new StringValidator();
437             typeValidator.setWhiteSpace("preserve");
438             fieldValidator.setValidator(typeValidator);
439         }
440         desc.setValidator(fieldValidator);
441         //-- _multilanguage
442
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_multilanguage", "Multilanguage", org.exolab.castor.xml.NodeType.Attribute);
443         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
444             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
445                 throws IllegalStateException JavaDoc
446             {
447                 ReportDefinition target = (ReportDefinition) object;
448                 if(!target.hasMultilanguage())
449                     return null;
450                 return new Boolean JavaDoc(target.getMultilanguage());
451             }
452             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
453                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
454             {
455                 try {
456                     ReportDefinition target = (ReportDefinition) object;
457                     // if null, use delete method for optional primitives
458
if (value == null) {
459                         target.deleteMultilanguage();
460                         return;
461                     }
462                     target.setMultilanguage( ((Boolean JavaDoc)value).booleanValue());
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 null;
470             }
471         } );
472         desc.setHandler(handler);
473         addFieldDescriptor(desc);
474         
475         //-- validation code for: _multilanguage
476
fieldValidator = new org.exolab.castor.xml.FieldValidator();
477         { //-- local scope
478
BooleanValidator typeValidator = new BooleanValidator();
479             fieldValidator.setValidator(typeValidator);
480         }
481         desc.setValidator(fieldValidator);
482         //-- _maxRowsDimensionReference
483
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_maxRowsDimensionReference", "MaxRowsDimensionReference", org.exolab.castor.xml.NodeType.Attribute);
484         desc.setImmutable(true);
485         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
486             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
487                 throws IllegalStateException JavaDoc
488             {
489                 ReportDefinition target = (ReportDefinition) object;
490                 return target.getMaxRowsDimensionReference();
491             }
492             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
493                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
494             {
495                 try {
496                     ReportDefinition target = (ReportDefinition) object;
497                     target.setMaxRowsDimensionReference( (java.lang.String JavaDoc) value);
498                 }
499                 catch (java.lang.Exception JavaDoc ex) {
500                     throw new IllegalStateException JavaDoc(ex.toString());
501                 }
502             }
503             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
504                 return null;
505             }
506         } );
507         desc.setHandler(handler);
508         addFieldDescriptor(desc);
509         
510         //-- validation code for: _maxRowsDimensionReference
511
fieldValidator = new org.exolab.castor.xml.FieldValidator();
512         { //-- local scope
513
StringValidator typeValidator = new StringValidator();
514             typeValidator.setWhiteSpace("preserve");
515             fieldValidator.setValidator(typeValidator);
516         }
517         desc.setValidator(fieldValidator);
518         //-- _maxRowCount
519
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_maxRowCount", "MaxRowCount", org.exolab.castor.xml.NodeType.Attribute);
520         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
521             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
522                 throws IllegalStateException JavaDoc
523             {
524                 ReportDefinition target = (ReportDefinition) object;
525                 if(!target.hasMaxRowCount())
526                     return null;
527                 return new Integer JavaDoc(target.getMaxRowCount());
528             }
529             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
530                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
531             {
532                 try {
533                     ReportDefinition target = (ReportDefinition) object;
534                     // if null, use delete method for optional primitives
535
if (value == null) {
536                         target.deleteMaxRowCount();
537                         return;
538                     }
539                     target.setMaxRowCount( ((Integer JavaDoc)value).intValue());
540                 }
541                 catch (java.lang.Exception JavaDoc ex) {
542                     throw new IllegalStateException JavaDoc(ex.toString());
543                 }
544             }
545             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
546                 return null;
547             }
548         } );
549         desc.setHandler(handler);
550         addFieldDescriptor(desc);
551         
552         //-- validation code for: _maxRowCount
553
fieldValidator = new org.exolab.castor.xml.FieldValidator();
554         { //-- local scope
555
IntegerValidator typeValidator = new IntegerValidator();
556             fieldValidator.setValidator(typeValidator);
557         }
558         desc.setValidator(fieldValidator);
559         //-- _visibleTotals
560
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_visibleTotals", "VisibleTotals", org.exolab.castor.xml.NodeType.Attribute);
561         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
562             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
563                 throws IllegalStateException JavaDoc
564             {
565                 ReportDefinition target = (ReportDefinition) object;
566                 if(!target.hasVisibleTotals())
567                     return null;
568                 return new Boolean JavaDoc(target.getVisibleTotals());
569             }
570             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
571                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
572             {
573                 try {
574                     ReportDefinition target = (ReportDefinition) object;
575                     // if null, use delete method for optional primitives
576
if (value == null) {
577                         target.deleteVisibleTotals();
578                         return;
579                     }
580                     target.setVisibleTotals( ((Boolean JavaDoc)value).booleanValue());
581                 }
582                 catch (java.lang.Exception JavaDoc ex) {
583                     throw new IllegalStateException JavaDoc(ex.toString());
584                 }
585             }
586             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
587                 return null;
588             }
589         } );
590         desc.setHandler(handler);
591         addFieldDescriptor(desc);
592         
593         //-- validation code for: _visibleTotals
594
fieldValidator = new org.exolab.castor.xml.FieldValidator();
595         { //-- local scope
596
BooleanValidator typeValidator = new BooleanValidator();
597             fieldValidator.setValidator(typeValidator);
598         }
599         desc.setValidator(fieldValidator);
600         //-- _layoutDesign
601
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_layoutDesign", "LayoutDesign", org.exolab.castor.xml.NodeType.Attribute);
602         desc.setImmutable(true);
603         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
604             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
605                 throws IllegalStateException JavaDoc
606             {
607                 ReportDefinition target = (ReportDefinition) object;
608                 return target.getLayoutDesign();
609             }
610             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
611                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
612             {
613                 try {
614                     ReportDefinition target = (ReportDefinition) object;
615                     target.setLayoutDesign( (java.lang.String JavaDoc) value);
616                 }
617                 catch (java.lang.Exception JavaDoc ex) {
618                     throw new IllegalStateException JavaDoc(ex.toString());
619                 }
620             }
621             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
622                 return null;
623             }
624         } );
625         desc.setHandler(handler);
626         addFieldDescriptor(desc);
627         
628         //-- validation code for: _layoutDesign
629
fieldValidator = new org.exolab.castor.xml.FieldValidator();
630         { //-- local scope
631
StringValidator typeValidator = new StringValidator();
632             typeValidator.setWhiteSpace("preserve");
633             fieldValidator.setValidator(typeValidator);
634         }
635         desc.setValidator(fieldValidator);
636         //-- initialize element descriptors
637

638         //-- _roles
639
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.Roles.class, "_roles", "Roles", org.exolab.castor.xml.NodeType.Element);
640         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
641             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
642                 throws IllegalStateException JavaDoc
643             {
644                 ReportDefinition target = (ReportDefinition) object;
645                 return target.getRoles();
646             }
647             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
648                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
649             {
650                 try {
651                     ReportDefinition target = (ReportDefinition) object;
652                     target.setRoles( (com.calipso.reportgenerator.reportdefinitions.Roles) value);
653                 }
654                 catch (java.lang.Exception JavaDoc ex) {
655                     throw new IllegalStateException JavaDoc(ex.toString());
656                 }
657             }
658             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
659                 return new com.calipso.reportgenerator.reportdefinitions.Roles();
660             }
661         } );
662         desc.setHandler(handler);
663         desc.setRequired(true);
664         desc.setMultivalued(false);
665         addFieldDescriptor(desc);
666         
667         //-- validation code for: _roles
668
fieldValidator = new org.exolab.castor.xml.FieldValidator();
669         fieldValidator.setMinOccurs(1);
670         { //-- local scope
671
}
672         desc.setValidator(fieldValidator);
673         //-- _dimensionDefinitions
674
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.DimensionDefinitions.class, "_dimensionDefinitions", "DimensionDefinitions", org.exolab.castor.xml.NodeType.Element);
675         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
676             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
677                 throws IllegalStateException JavaDoc
678             {
679                 ReportDefinition target = (ReportDefinition) object;
680                 return target.getDimensionDefinitions();
681             }
682             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
683                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
684             {
685                 try {
686                     ReportDefinition target = (ReportDefinition) object;
687                     target.setDimensionDefinitions( (com.calipso.reportgenerator.reportdefinitions.DimensionDefinitions) value);
688                 }
689                 catch (java.lang.Exception JavaDoc ex) {
690                     throw new IllegalStateException JavaDoc(ex.toString());
691                 }
692             }
693             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
694                 return new com.calipso.reportgenerator.reportdefinitions.DimensionDefinitions();
695             }
696         } );
697         desc.setHandler(handler);
698         desc.setRequired(true);
699         desc.setMultivalued(false);
700         addFieldDescriptor(desc);
701         
702         //-- validation code for: _dimensionDefinitions
703
fieldValidator = new org.exolab.castor.xml.FieldValidator();
704         fieldValidator.setMinOccurs(1);
705         { //-- local scope
706
}
707         desc.setValidator(fieldValidator);
708         //-- _metricDefinitions
709
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.MetricDefinitions.class, "_metricDefinitions", "MetricDefinitions", org.exolab.castor.xml.NodeType.Element);
710         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
711             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
712                 throws IllegalStateException JavaDoc
713             {
714                 ReportDefinition target = (ReportDefinition) object;
715                 return target.getMetricDefinitions();
716             }
717             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
718                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
719             {
720                 try {
721                     ReportDefinition target = (ReportDefinition) object;
722                     target.setMetricDefinitions( (com.calipso.reportgenerator.reportdefinitions.MetricDefinitions) value);
723                 }
724                 catch (java.lang.Exception JavaDoc ex) {
725                     throw new IllegalStateException JavaDoc(ex.toString());
726                 }
727             }
728             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
729                 return new com.calipso.reportgenerator.reportdefinitions.MetricDefinitions();
730             }
731         } );
732         desc.setHandler(handler);
733         desc.setRequired(true);
734         desc.setMultivalued(false);
735         addFieldDescriptor(desc);
736         
737         //-- validation code for: _metricDefinitions
738
fieldValidator = new org.exolab.castor.xml.FieldValidator();
739         fieldValidator.setMinOccurs(1);
740         { //-- local scope
741
}
742         desc.setValidator(fieldValidator);
743         //-- _actionDefinitions
744
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.ActionDefinitions.class, "_actionDefinitions", "ActionDefinitions", org.exolab.castor.xml.NodeType.Element);
745         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
746             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
747                 throws IllegalStateException JavaDoc
748             {
749                 ReportDefinition target = (ReportDefinition) object;
750                 return target.getActionDefinitions();
751             }
752             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
753                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
754             {
755                 try {
756                     ReportDefinition target = (ReportDefinition) object;
757                     target.setActionDefinitions( (com.calipso.reportgenerator.reportdefinitions.ActionDefinitions) value);
758                 }
759                 catch (java.lang.Exception JavaDoc ex) {
760                     throw new IllegalStateException JavaDoc(ex.toString());
761                 }
762             }
763             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
764                 return new com.calipso.reportgenerator.reportdefinitions.ActionDefinitions();
765             }
766         } );
767         desc.setHandler(handler);
768         desc.setMultivalued(false);
769         addFieldDescriptor(desc);
770         
771         //-- validation code for: _actionDefinitions
772
fieldValidator = new org.exolab.castor.xml.FieldValidator();
773         { //-- local scope
774
}
775         desc.setValidator(fieldValidator);
776         //-- _filterDefinitions
777
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.FilterDefinitions.class, "_filterDefinitions", "FilterDefinitions", org.exolab.castor.xml.NodeType.Element);
778         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
779             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
780                 throws IllegalStateException JavaDoc
781             {
782                 ReportDefinition target = (ReportDefinition) object;
783                 return target.getFilterDefinitions();
784             }
785             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
786                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
787             {
788                 try {
789                     ReportDefinition target = (ReportDefinition) object;
790                     target.setFilterDefinitions( (com.calipso.reportgenerator.reportdefinitions.FilterDefinitions) value);
791                 }
792                 catch (java.lang.Exception JavaDoc ex) {
793                     throw new IllegalStateException JavaDoc(ex.toString());
794                 }
795             }
796             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
797                 return new com.calipso.reportgenerator.reportdefinitions.FilterDefinitions();
798             }
799         } );
800         desc.setHandler(handler);
801         desc.setMultivalued(false);
802         addFieldDescriptor(desc);
803         
804         //-- validation code for: _filterDefinitions
805
fieldValidator = new org.exolab.castor.xml.FieldValidator();
806         { //-- local scope
807
}
808         desc.setValidator(fieldValidator);
809         //-- _parameterValues
810
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.ParameterValues.class, "_parameterValues", "ParameterValues", org.exolab.castor.xml.NodeType.Element);
811         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
812             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
813                 throws IllegalStateException JavaDoc
814             {
815                 ReportDefinition target = (ReportDefinition) object;
816                 return target.getParameterValues();
817             }
818             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
819                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
820             {
821                 try {
822                     ReportDefinition target = (ReportDefinition) object;
823                     target.setParameterValues( (com.calipso.reportgenerator.reportdefinitions.ParameterValues) value);
824                 }
825                 catch (java.lang.Exception JavaDoc ex) {
826                     throw new IllegalStateException JavaDoc(ex.toString());
827                 }
828             }
829             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
830                 return new com.calipso.reportgenerator.reportdefinitions.ParameterValues();
831             }
832         } );
833         desc.setHandler(handler);
834         desc.setMultivalued(false);
835         addFieldDescriptor(desc);
836         
837         //-- validation code for: _parameterValues
838
fieldValidator = new org.exolab.castor.xml.FieldValidator();
839         { //-- local scope
840
}
841         desc.setValidator(fieldValidator);
842         //-- _localizations
843
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.Localizations.class, "_localizations", "Localizations", org.exolab.castor.xml.NodeType.Element);
844         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
845             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
846                 throws IllegalStateException JavaDoc
847             {
848                 ReportDefinition target = (ReportDefinition) object;
849                 return target.getLocalizations();
850             }
851             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
852                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
853             {
854                 try {
855                     ReportDefinition target = (ReportDefinition) object;
856                     target.setLocalizations( (com.calipso.reportgenerator.reportdefinitions.Localizations) value);
857                 }
858                 catch (java.lang.Exception JavaDoc ex) {
859                     throw new IllegalStateException JavaDoc(ex.toString());
860                 }
861             }
862             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
863                 return new com.calipso.reportgenerator.reportdefinitions.Localizations();
864             }
865         } );
866         desc.setHandler(handler);
867         desc.setMultivalued(false);
868         addFieldDescriptor(desc);
869         
870         //-- validation code for: _localizations
871
fieldValidator = new org.exolab.castor.xml.FieldValidator();
872         { //-- local scope
873
}
874         desc.setValidator(fieldValidator);
875         //-- _drillDownDefinitions
876
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.DrillDownDefinitions.class, "_drillDownDefinitions", "DrillDownDefinitions", org.exolab.castor.xml.NodeType.Element);
877         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
878             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
879                 throws IllegalStateException JavaDoc
880             {
881                 ReportDefinition target = (ReportDefinition) object;
882                 return target.getDrillDownDefinitions();
883             }
884             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
885                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
886             {
887                 try {
888                     ReportDefinition target = (ReportDefinition) object;
889                     target.setDrillDownDefinitions( (com.calipso.reportgenerator.reportdefinitions.DrillDownDefinitions) value);
890                 }
891                 catch (java.lang.Exception JavaDoc ex) {
892                     throw new IllegalStateException JavaDoc(ex.toString());
893                 }
894             }
895             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
896                 return new com.calipso.reportgenerator.reportdefinitions.DrillDownDefinitions();
897             }
898         } );
899         desc.setHandler(handler);
900         desc.setMultivalued(false);
901         addFieldDescriptor(desc);
902         
903         //-- validation code for: _drillDownDefinitions
904
fieldValidator = new org.exolab.castor.xml.FieldValidator();
905         { //-- local scope
906
}
907         desc.setValidator(fieldValidator);
908     } //-- com.calipso.reportgenerator.reportdefinitions.ReportDefinitionDescriptor()
909

910
911       //-----------/
912
//- Methods -/
913
//-----------/
914

915     /**
916      * Method getAccessMode
917      */

918     public org.exolab.castor.mapping.AccessMode getAccessMode()
919     {
920         return null;
921     } //-- org.exolab.castor.mapping.AccessMode getAccessMode()
922

923     /**
924      * Method getExtends
925      */

926     public org.exolab.castor.mapping.ClassDescriptor getExtends()
927     {
928         return null;
929     } //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
930

931     /**
932      * Method getIdentity
933      */

934     public org.exolab.castor.mapping.FieldDescriptor getIdentity()
935     {
936         return identity;
937     } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
938

939     /**
940      * Method getJavaClass
941      */

942     public java.lang.Class JavaDoc getJavaClass()
943     {
944         return com.calipso.reportgenerator.reportdefinitions.ReportDefinition.class;
945     } //-- java.lang.Class getJavaClass()
946

947     /**
948      * Method getNameSpacePrefix
949      */

950     public java.lang.String JavaDoc getNameSpacePrefix()
951     {
952         return nsPrefix;
953     } //-- java.lang.String getNameSpacePrefix()
954

955     /**
956      * Method getNameSpaceURI
957      */

958     public java.lang.String JavaDoc getNameSpaceURI()
959     {
960         return nsURI;
961     } //-- java.lang.String getNameSpaceURI()
962

963     /**
964      * Method getValidator
965      */

966     public org.exolab.castor.xml.TypeValidator getValidator()
967     {
968         return this;
969     } //-- org.exolab.castor.xml.TypeValidator getValidator()
970

971     /**
972      * Method getXMLName
973      */

974     public java.lang.String JavaDoc getXMLName()
975     {
976         return xmlName;
977     } //-- java.lang.String getXMLName()
978

979 }
980
Popular Tags