KickJava   Java API By Example, From Geeks To Geeks.

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


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

24 public class DataSourceDefinitionDescriptor 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 DataSourceDefinitionDescriptor() {
57         super();
58         xmlName = "DataSourceDefinition";
59         org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
60         org.exolab.castor.xml.XMLFieldHandler handler = null;
61         org.exolab.castor.xml.FieldValidator fieldValidator = null;
62         //-- initialize attribute descriptors
63

64         //-- _name
65
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_name", "Name", org.exolab.castor.xml.NodeType.Attribute);
66         desc.setImmutable(true);
67         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
68             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
69                 throws IllegalStateException JavaDoc
70             {
71                 DataSourceDefinition target = (DataSourceDefinition) object;
72                 return target.getName();
73             }
74             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
75                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
76             {
77                 try {
78                     DataSourceDefinition target = (DataSourceDefinition) object;
79                     target.setName( (java.lang.String JavaDoc) value);
80                 }
81                 catch (java.lang.Exception JavaDoc ex) {
82                     throw new IllegalStateException JavaDoc(ex.toString());
83                 }
84             }
85             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
86                 return null;
87             }
88         } );
89         desc.setHandler(handler);
90         desc.setRequired(true);
91         addFieldDescriptor(desc);
92         
93         //-- validation code for: _name
94
fieldValidator = new org.exolab.castor.xml.FieldValidator();
95         fieldValidator.setMinOccurs(1);
96         { //-- local scope
97
StringValidator typeValidator = new StringValidator();
98             typeValidator.setWhiteSpace("preserve");
99             fieldValidator.setValidator(typeValidator);
100         }
101         desc.setValidator(fieldValidator);
102         //-- _sourceType
103
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.types.DataSourceDefinitionSourceTypeType.class, "_sourceType", "SourceType", org.exolab.castor.xml.NodeType.Attribute);
104         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
105             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
106                 throws IllegalStateException JavaDoc
107             {
108                 DataSourceDefinition target = (DataSourceDefinition) object;
109                 return target.getSourceType();
110             }
111             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
112                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
113             {
114                 try {
115                     DataSourceDefinition target = (DataSourceDefinition) object;
116                     target.setSourceType( (com.calipso.reportgenerator.reportdefinitions.types.DataSourceDefinitionSourceTypeType) value);
117                 }
118                 catch (java.lang.Exception JavaDoc ex) {
119                     throw new IllegalStateException JavaDoc(ex.toString());
120                 }
121             }
122             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
123                 return null;
124             }
125         } );
126         desc.setHandler( new org.exolab.castor.xml.handlers.EnumFieldHandler(com.calipso.reportgenerator.reportdefinitions.types.DataSourceDefinitionSourceTypeType.class, handler));
127         desc.setImmutable(true);
128         desc.setRequired(true);
129         addFieldDescriptor(desc);
130         
131         //-- validation code for: _sourceType
132
fieldValidator = new org.exolab.castor.xml.FieldValidator();
133         fieldValidator.setMinOccurs(1);
134         { //-- local scope
135
}
136         desc.setValidator(fieldValidator);
137         //-- _expression
138
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_expression", "Expression", org.exolab.castor.xml.NodeType.Attribute);
139         desc.setImmutable(true);
140         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
141             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
142                 throws IllegalStateException JavaDoc
143             {
144                 DataSourceDefinition target = (DataSourceDefinition) object;
145                 return target.getExpression();
146             }
147             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
148                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
149             {
150                 try {
151                     DataSourceDefinition target = (DataSourceDefinition) object;
152                     target.setExpression( (java.lang.String JavaDoc) value);
153                 }
154                 catch (java.lang.Exception JavaDoc ex) {
155                     throw new IllegalStateException JavaDoc(ex.toString());
156                 }
157             }
158             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
159                 return null;
160             }
161         } );
162         desc.setHandler(handler);
163         addFieldDescriptor(desc);
164         
165         //-- validation code for: _expression
166
fieldValidator = new org.exolab.castor.xml.FieldValidator();
167         { //-- local scope
168
StringValidator typeValidator = new StringValidator();
169             typeValidator.setWhiteSpace("preserve");
170             fieldValidator.setValidator(typeValidator);
171         }
172         desc.setValidator(fieldValidator);
173         //-- _externalClassName
174
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_externalClassName", "ExternalClassName", org.exolab.castor.xml.NodeType.Attribute);
175         desc.setImmutable(true);
176         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
177             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
178                 throws IllegalStateException JavaDoc
179             {
180                 DataSourceDefinition target = (DataSourceDefinition) object;
181                 return target.getExternalClassName();
182             }
183             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
184                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
185             {
186                 try {
187                     DataSourceDefinition target = (DataSourceDefinition) object;
188                     target.setExternalClassName( (java.lang.String JavaDoc) value);
189                 }
190                 catch (java.lang.Exception JavaDoc ex) {
191                     throw new IllegalStateException JavaDoc(ex.toString());
192                 }
193             }
194             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
195                 return null;
196             }
197         } );
198         desc.setHandler(handler);
199         addFieldDescriptor(desc);
200         
201         //-- validation code for: _externalClassName
202
fieldValidator = new org.exolab.castor.xml.FieldValidator();
203         { //-- local scope
204
StringValidator typeValidator = new StringValidator();
205             typeValidator.setWhiteSpace("preserve");
206             fieldValidator.setValidator(typeValidator);
207         }
208         desc.setValidator(fieldValidator);
209         //-- _externalSourceData
210
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_externalSourceData", "ExternalSourceData", org.exolab.castor.xml.NodeType.Attribute);
211         desc.setImmutable(true);
212         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
213             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
214                 throws IllegalStateException JavaDoc
215             {
216                 DataSourceDefinition target = (DataSourceDefinition) object;
217                 return target.getExternalSourceData();
218             }
219             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
220                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
221             {
222                 try {
223                     DataSourceDefinition target = (DataSourceDefinition) object;
224                     target.setExternalSourceData( (java.lang.String JavaDoc) value);
225                 }
226                 catch (java.lang.Exception JavaDoc ex) {
227                     throw new IllegalStateException JavaDoc(ex.toString());
228                 }
229             }
230             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
231                 return null;
232             }
233         } );
234         desc.setHandler(handler);
235         addFieldDescriptor(desc);
236         
237         //-- validation code for: _externalSourceData
238
fieldValidator = new org.exolab.castor.xml.FieldValidator();
239         { //-- local scope
240
StringValidator typeValidator = new StringValidator();
241             typeValidator.setWhiteSpace("preserve");
242             fieldValidator.setValidator(typeValidator);
243         }
244         desc.setValidator(fieldValidator);
245         //-- _externalConnectionString
246
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_externalConnectionString", "ExternalConnectionString", org.exolab.castor.xml.NodeType.Attribute);
247         desc.setImmutable(true);
248         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
249             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
250                 throws IllegalStateException JavaDoc
251             {
252                 DataSourceDefinition target = (DataSourceDefinition) object;
253                 return target.getExternalConnectionString();
254             }
255             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
256                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
257             {
258                 try {
259                     DataSourceDefinition target = (DataSourceDefinition) object;
260                     target.setExternalConnectionString( (java.lang.String JavaDoc) value);
261                 }
262                 catch (java.lang.Exception JavaDoc ex) {
263                     throw new IllegalStateException JavaDoc(ex.toString());
264                 }
265             }
266             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
267                 return null;
268             }
269         } );
270         desc.setHandler(handler);
271         addFieldDescriptor(desc);
272         
273         //-- validation code for: _externalConnectionString
274
fieldValidator = new org.exolab.castor.xml.FieldValidator();
275         { //-- local scope
276
StringValidator typeValidator = new StringValidator();
277             typeValidator.setWhiteSpace("preserve");
278             fieldValidator.setValidator(typeValidator);
279         }
280         desc.setValidator(fieldValidator);
281         //-- _externalConnectionClassName
282
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_externalConnectionClassName", "ExternalConnectionClassName", org.exolab.castor.xml.NodeType.Attribute);
283         desc.setImmutable(true);
284         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
285             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
286                 throws IllegalStateException JavaDoc
287             {
288                 DataSourceDefinition target = (DataSourceDefinition) object;
289                 return target.getExternalConnectionClassName();
290             }
291             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
292                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
293             {
294                 try {
295                     DataSourceDefinition target = (DataSourceDefinition) object;
296                     target.setExternalConnectionClassName( (java.lang.String JavaDoc) value);
297                 }
298                 catch (java.lang.Exception JavaDoc ex) {
299                     throw new IllegalStateException JavaDoc(ex.toString());
300                 }
301             }
302             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
303                 return null;
304             }
305         } );
306         desc.setHandler(handler);
307         addFieldDescriptor(desc);
308         
309         //-- validation code for: _externalConnectionClassName
310
fieldValidator = new org.exolab.castor.xml.FieldValidator();
311         { //-- local scope
312
StringValidator typeValidator = new StringValidator();
313             typeValidator.setWhiteSpace("preserve");
314             fieldValidator.setValidator(typeValidator);
315         }
316         desc.setValidator(fieldValidator);
317         //-- _externalConnectionLocalUrl
318
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_externalConnectionLocalUrl", "ExternalConnectionLocalUrl", org.exolab.castor.xml.NodeType.Attribute);
319         desc.setImmutable(true);
320         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
321             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
322                 throws IllegalStateException JavaDoc
323             {
324                 DataSourceDefinition target = (DataSourceDefinition) object;
325                 return target.getExternalConnectionLocalUrl();
326             }
327             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
328                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
329             {
330                 try {
331                     DataSourceDefinition target = (DataSourceDefinition) object;
332                     target.setExternalConnectionLocalUrl( (java.lang.String JavaDoc) value);
333                 }
334                 catch (java.lang.Exception JavaDoc ex) {
335                     throw new IllegalStateException JavaDoc(ex.toString());
336                 }
337             }
338             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
339                 return null;
340             }
341         } );
342         desc.setHandler(handler);
343         addFieldDescriptor(desc);
344         
345         //-- validation code for: _externalConnectionLocalUrl
346
fieldValidator = new org.exolab.castor.xml.FieldValidator();
347         { //-- local scope
348
StringValidator typeValidator = new StringValidator();
349             typeValidator.setWhiteSpace("preserve");
350             fieldValidator.setValidator(typeValidator);
351         }
352         desc.setValidator(fieldValidator);
353         //-- _externalConnectionDistributedUrl
354
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_externalConnectionDistributedUrl", "ExternalConnectionDistributedUrl", org.exolab.castor.xml.NodeType.Attribute);
355         desc.setImmutable(true);
356         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
357             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
358                 throws IllegalStateException JavaDoc
359             {
360                 DataSourceDefinition target = (DataSourceDefinition) object;
361                 return target.getExternalConnectionDistributedUrl();
362             }
363             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
364                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
365             {
366                 try {
367                     DataSourceDefinition target = (DataSourceDefinition) object;
368                     target.setExternalConnectionDistributedUrl( (java.lang.String JavaDoc) value);
369                 }
370                 catch (java.lang.Exception JavaDoc ex) {
371                     throw new IllegalStateException JavaDoc(ex.toString());
372                 }
373             }
374             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
375                 return null;
376             }
377         } );
378         desc.setHandler(handler);
379         addFieldDescriptor(desc);
380         
381         //-- validation code for: _externalConnectionDistributedUrl
382
fieldValidator = new org.exolab.castor.xml.FieldValidator();
383         { //-- local scope
384
StringValidator typeValidator = new StringValidator();
385             typeValidator.setWhiteSpace("preserve");
386             fieldValidator.setValidator(typeValidator);
387         }
388         desc.setValidator(fieldValidator);
389         //-- _externalConnectionUser
390
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_externalConnectionUser", "ExternalConnectionUser", org.exolab.castor.xml.NodeType.Attribute);
391         desc.setImmutable(true);
392         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
393             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
394                 throws IllegalStateException JavaDoc
395             {
396                 DataSourceDefinition target = (DataSourceDefinition) object;
397                 return target.getExternalConnectionUser();
398             }
399             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
400                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
401             {
402                 try {
403                     DataSourceDefinition target = (DataSourceDefinition) object;
404                     target.setExternalConnectionUser( (java.lang.String JavaDoc) value);
405                 }
406                 catch (java.lang.Exception JavaDoc ex) {
407                     throw new IllegalStateException JavaDoc(ex.toString());
408                 }
409             }
410             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
411                 return null;
412             }
413         } );
414         desc.setHandler(handler);
415         addFieldDescriptor(desc);
416         
417         //-- validation code for: _externalConnectionUser
418
fieldValidator = new org.exolab.castor.xml.FieldValidator();
419         { //-- local scope
420
StringValidator typeValidator = new StringValidator();
421             typeValidator.setWhiteSpace("preserve");
422             fieldValidator.setValidator(typeValidator);
423         }
424         desc.setValidator(fieldValidator);
425         //-- _externalConnectionPassword
426
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_externalConnectionPassword", "ExternalConnectionPassword", org.exolab.castor.xml.NodeType.Attribute);
427         desc.setImmutable(true);
428         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
429             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
430                 throws IllegalStateException JavaDoc
431             {
432                 DataSourceDefinition target = (DataSourceDefinition) object;
433                 return target.getExternalConnectionPassword();
434             }
435             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
436                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
437             {
438                 try {
439                     DataSourceDefinition target = (DataSourceDefinition) object;
440                     target.setExternalConnectionPassword( (java.lang.String JavaDoc) value);
441                 }
442                 catch (java.lang.Exception JavaDoc ex) {
443                     throw new IllegalStateException JavaDoc(ex.toString());
444                 }
445             }
446             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
447                 return null;
448             }
449         } );
450         desc.setHandler(handler);
451         addFieldDescriptor(desc);
452         
453         //-- validation code for: _externalConnectionPassword
454
fieldValidator = new org.exolab.castor.xml.FieldValidator();
455         { //-- local scope
456
StringValidator typeValidator = new StringValidator();
457             typeValidator.setWhiteSpace("preserve");
458             fieldValidator.setValidator(typeValidator);
459         }
460         desc.setValidator(fieldValidator);
461         //-- _datePattern
462
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_datePattern", "DatePattern", org.exolab.castor.xml.NodeType.Attribute);
463         desc.setImmutable(true);
464         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
465             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
466                 throws IllegalStateException JavaDoc
467             {
468                 DataSourceDefinition target = (DataSourceDefinition) object;
469                 return target.getDatePattern();
470             }
471             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
472                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
473             {
474                 try {
475                     DataSourceDefinition target = (DataSourceDefinition) object;
476                     target.setDatePattern( (java.lang.String JavaDoc) value);
477                 }
478                 catch (java.lang.Exception JavaDoc ex) {
479                     throw new IllegalStateException JavaDoc(ex.toString());
480                 }
481             }
482             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
483                 return null;
484             }
485         } );
486         desc.setHandler(handler);
487         addFieldDescriptor(desc);
488         
489         //-- validation code for: _datePattern
490
fieldValidator = new org.exolab.castor.xml.FieldValidator();
491         { //-- local scope
492
StringValidator typeValidator = new StringValidator();
493             typeValidator.setWhiteSpace("preserve");
494             fieldValidator.setValidator(typeValidator);
495         }
496         desc.setValidator(fieldValidator);
497         //-- _dateTimePattern
498
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_dateTimePattern", "DateTimePattern", org.exolab.castor.xml.NodeType.Attribute);
499         desc.setImmutable(true);
500         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
501             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
502                 throws IllegalStateException JavaDoc
503             {
504                 DataSourceDefinition target = (DataSourceDefinition) object;
505                 return target.getDateTimePattern();
506             }
507             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
508                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
509             {
510                 try {
511                     DataSourceDefinition target = (DataSourceDefinition) object;
512                     target.setDateTimePattern( (java.lang.String JavaDoc) value);
513                 }
514                 catch (java.lang.Exception JavaDoc ex) {
515                     throw new IllegalStateException JavaDoc(ex.toString());
516                 }
517             }
518             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
519                 return null;
520             }
521         } );
522         desc.setHandler(handler);
523         addFieldDescriptor(desc);
524         
525         //-- validation code for: _dateTimePattern
526
fieldValidator = new org.exolab.castor.xml.FieldValidator();
527         { //-- local scope
528
StringValidator typeValidator = new StringValidator();
529             typeValidator.setWhiteSpace("preserve");
530             fieldValidator.setValidator(typeValidator);
531         }
532         desc.setValidator(fieldValidator);
533         //-- _sheetName
534
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_sheetName", "SheetName", org.exolab.castor.xml.NodeType.Attribute);
535         desc.setImmutable(true);
536         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
537             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
538                 throws IllegalStateException JavaDoc
539             {
540                 DataSourceDefinition target = (DataSourceDefinition) object;
541                 return target.getSheetName();
542             }
543             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
544                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
545             {
546                 try {
547                     DataSourceDefinition target = (DataSourceDefinition) object;
548                     target.setSheetName( (java.lang.String JavaDoc) value);
549                 }
550                 catch (java.lang.Exception JavaDoc ex) {
551                     throw new IllegalStateException JavaDoc(ex.toString());
552                 }
553             }
554             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
555                 return null;
556             }
557         } );
558         desc.setHandler(handler);
559         addFieldDescriptor(desc);
560         
561         //-- validation code for: _sheetName
562
fieldValidator = new org.exolab.castor.xml.FieldValidator();
563         { //-- local scope
564
StringValidator typeValidator = new StringValidator();
565             typeValidator.setWhiteSpace("preserve");
566             fieldValidator.setValidator(typeValidator);
567         }
568         desc.setValidator(fieldValidator);
569         //-- _dataInitialCell
570
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_dataInitialCell", "DataInitialCell", org.exolab.castor.xml.NodeType.Attribute);
571         desc.setImmutable(true);
572         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
573             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
574                 throws IllegalStateException JavaDoc
575             {
576                 DataSourceDefinition target = (DataSourceDefinition) object;
577                 return target.getDataInitialCell();
578             }
579             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
580                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
581             {
582                 try {
583                     DataSourceDefinition target = (DataSourceDefinition) object;
584                     target.setDataInitialCell( (java.lang.String JavaDoc) value);
585                 }
586                 catch (java.lang.Exception JavaDoc ex) {
587                     throw new IllegalStateException JavaDoc(ex.toString());
588                 }
589             }
590             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
591                 return null;
592             }
593         } );
594         desc.setHandler(handler);
595         addFieldDescriptor(desc);
596         
597         //-- validation code for: _dataInitialCell
598
fieldValidator = new org.exolab.castor.xml.FieldValidator();
599         { //-- local scope
600
StringValidator typeValidator = new StringValidator();
601             typeValidator.setWhiteSpace("preserve");
602             fieldValidator.setValidator(typeValidator);
603         }
604         desc.setValidator(fieldValidator);
605         //-- _dataEndingCell
606
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_dataEndingCell", "DataEndingCell", org.exolab.castor.xml.NodeType.Attribute);
607         desc.setImmutable(true);
608         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
609             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
610                 throws IllegalStateException JavaDoc
611             {
612                 DataSourceDefinition target = (DataSourceDefinition) object;
613                 return target.getDataEndingCell();
614             }
615             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
616                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
617             {
618                 try {
619                     DataSourceDefinition target = (DataSourceDefinition) object;
620                     target.setDataEndingCell( (java.lang.String JavaDoc) value);
621                 }
622                 catch (java.lang.Exception JavaDoc ex) {
623                     throw new IllegalStateException JavaDoc(ex.toString());
624                 }
625             }
626             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
627                 return null;
628             }
629         } );
630         desc.setHandler(handler);
631         addFieldDescriptor(desc);
632         
633         //-- validation code for: _dataEndingCell
634
fieldValidator = new org.exolab.castor.xml.FieldValidator();
635         { //-- local scope
636
StringValidator typeValidator = new StringValidator();
637             typeValidator.setWhiteSpace("preserve");
638             fieldValidator.setValidator(typeValidator);
639         }
640         desc.setValidator(fieldValidator);
641         //-- initialize element descriptors
642

643     } //-- com.calipso.reportgenerator.reportdefinitions.DataSourceDefinitionDescriptor()
644

645
646       //-----------/
647
//- Methods -/
648
//-----------/
649

650     /**
651      * Method getAccessMode
652      */

653     public org.exolab.castor.mapping.AccessMode getAccessMode()
654     {
655         return null;
656     } //-- org.exolab.castor.mapping.AccessMode getAccessMode()
657

658     /**
659      * Method getExtends
660      */

661     public org.exolab.castor.mapping.ClassDescriptor getExtends()
662     {
663         return null;
664     } //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
665

666     /**
667      * Method getIdentity
668      */

669     public org.exolab.castor.mapping.FieldDescriptor getIdentity()
670     {
671         return identity;
672     } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
673

674     /**
675      * Method getJavaClass
676      */

677     public java.lang.Class JavaDoc getJavaClass()
678     {
679         return com.calipso.reportgenerator.reportdefinitions.DataSourceDefinition.class;
680     } //-- java.lang.Class getJavaClass()
681

682     /**
683      * Method getNameSpacePrefix
684      */

685     public java.lang.String JavaDoc getNameSpacePrefix()
686     {
687         return nsPrefix;
688     } //-- java.lang.String getNameSpacePrefix()
689

690     /**
691      * Method getNameSpaceURI
692      */

693     public java.lang.String JavaDoc getNameSpaceURI()
694     {
695         return nsURI;
696     } //-- java.lang.String getNameSpaceURI()
697

698     /**
699      * Method getValidator
700      */

701     public org.exolab.castor.xml.TypeValidator getValidator()
702     {
703         return this;
704     } //-- org.exolab.castor.xml.TypeValidator getValidator()
705

706     /**
707      * Method getXMLName
708      */

709     public java.lang.String JavaDoc getXMLName()
710     {
711         return xmlName;
712     } //-- java.lang.String getXMLName()
713

714 }
715
Popular Tags