001: /*
002: * This class was automatically generated with
003: * <a href="http://www.castor.org">Castor 0.9.4.3</a>, using an XML
004: * Schema.
005: * $Id$
006: */
007:
008: package com.calipso.reportgenerator.reportdefinitions;
009:
010: //---------------------------------/
011: //- Imported classes and packages -/
012: //---------------------------------/
013:
014: import org.exolab.castor.mapping.AccessMode;
015: import org.exolab.castor.xml.TypeValidator;
016: import org.exolab.castor.xml.XMLFieldDescriptor;
017: import org.exolab.castor.xml.validators.*;
018:
019: /**
020: * Class DataSourceDefinitionDescriptor.
021: *
022: * @version $Revision$ $Date$
023: */
024: public class DataSourceDefinitionDescriptor extends
025: org.exolab.castor.xml.util.XMLClassDescriptorImpl {
026:
027: //--------------------------/
028: //- Class/Member Variables -/
029: //--------------------------/
030:
031: /**
032: * Field nsPrefix
033: */
034: private java.lang.String nsPrefix;
035:
036: /**
037: * Field nsURI
038: */
039: private java.lang.String nsURI;
040:
041: /**
042: * Field xmlName
043: */
044: private java.lang.String xmlName;
045:
046: /**
047: * Field identity
048: */
049: private org.exolab.castor.xml.XMLFieldDescriptor identity;
050:
051: //----------------/
052: //- Constructors -/
053: //----------------/
054:
055: public DataSourceDefinitionDescriptor() {
056: super ();
057: xmlName = "DataSourceDefinition";
058: org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
059: org.exolab.castor.xml.XMLFieldHandler handler = null;
060: org.exolab.castor.xml.FieldValidator fieldValidator = null;
061: //-- initialize attribute descriptors
062:
063: //-- _name
064: desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
065: java.lang.String.class, "_name", "Name",
066: org.exolab.castor.xml.NodeType.Attribute);
067: desc.setImmutable(true);
068: handler = (new org.exolab.castor.xml.XMLFieldHandler() {
069: public java.lang.Object getValue(java.lang.Object object)
070: throws IllegalStateException {
071: DataSourceDefinition target = (DataSourceDefinition) object;
072: return target.getName();
073: }
074:
075: public void setValue(java.lang.Object object,
076: java.lang.Object value)
077: throws IllegalStateException,
078: IllegalArgumentException {
079: try {
080: DataSourceDefinition target = (DataSourceDefinition) object;
081: target.setName((java.lang.String) value);
082: } catch (java.lang.Exception ex) {
083: throw new IllegalStateException(ex.toString());
084: }
085: }
086:
087: public java.lang.Object newInstance(java.lang.Object parent) {
088: return null;
089: }
090: });
091: desc.setHandler(handler);
092: desc.setRequired(true);
093: addFieldDescriptor(desc);
094:
095: //-- validation code for: _name
096: fieldValidator = new org.exolab.castor.xml.FieldValidator();
097: fieldValidator.setMinOccurs(1);
098: { //-- local scope
099: StringValidator typeValidator = new StringValidator();
100: typeValidator.setWhiteSpace("preserve");
101: fieldValidator.setValidator(typeValidator);
102: }
103: desc.setValidator(fieldValidator);
104: //-- _sourceType
105: desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
106: com.calipso.reportgenerator.reportdefinitions.types.DataSourceDefinitionSourceTypeType.class,
107: "_sourceType", "SourceType",
108: org.exolab.castor.xml.NodeType.Attribute);
109: handler = (new org.exolab.castor.xml.XMLFieldHandler() {
110: public java.lang.Object getValue(java.lang.Object object)
111: throws IllegalStateException {
112: DataSourceDefinition target = (DataSourceDefinition) object;
113: return target.getSourceType();
114: }
115:
116: public void setValue(java.lang.Object object,
117: java.lang.Object value)
118: throws IllegalStateException,
119: IllegalArgumentException {
120: try {
121: DataSourceDefinition target = (DataSourceDefinition) object;
122: target
123: .setSourceType((com.calipso.reportgenerator.reportdefinitions.types.DataSourceDefinitionSourceTypeType) value);
124: } catch (java.lang.Exception ex) {
125: throw new IllegalStateException(ex.toString());
126: }
127: }
128:
129: public java.lang.Object newInstance(java.lang.Object parent) {
130: return null;
131: }
132: });
133: desc
134: .setHandler(new org.exolab.castor.xml.handlers.EnumFieldHandler(
135: com.calipso.reportgenerator.reportdefinitions.types.DataSourceDefinitionSourceTypeType.class,
136: handler));
137: desc.setImmutable(true);
138: desc.setRequired(true);
139: addFieldDescriptor(desc);
140:
141: //-- validation code for: _sourceType
142: fieldValidator = new org.exolab.castor.xml.FieldValidator();
143: fieldValidator.setMinOccurs(1);
144: { //-- local scope
145: }
146: desc.setValidator(fieldValidator);
147: //-- _expression
148: desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
149: java.lang.String.class, "_expression", "Expression",
150: org.exolab.castor.xml.NodeType.Attribute);
151: desc.setImmutable(true);
152: handler = (new org.exolab.castor.xml.XMLFieldHandler() {
153: public java.lang.Object getValue(java.lang.Object object)
154: throws IllegalStateException {
155: DataSourceDefinition target = (DataSourceDefinition) object;
156: return target.getExpression();
157: }
158:
159: public void setValue(java.lang.Object object,
160: java.lang.Object value)
161: throws IllegalStateException,
162: IllegalArgumentException {
163: try {
164: DataSourceDefinition target = (DataSourceDefinition) object;
165: target.setExpression((java.lang.String) value);
166: } catch (java.lang.Exception ex) {
167: throw new IllegalStateException(ex.toString());
168: }
169: }
170:
171: public java.lang.Object newInstance(java.lang.Object parent) {
172: return null;
173: }
174: });
175: desc.setHandler(handler);
176: addFieldDescriptor(desc);
177:
178: //-- validation code for: _expression
179: fieldValidator = new org.exolab.castor.xml.FieldValidator();
180: { //-- local scope
181: StringValidator typeValidator = new StringValidator();
182: typeValidator.setWhiteSpace("preserve");
183: fieldValidator.setValidator(typeValidator);
184: }
185: desc.setValidator(fieldValidator);
186: //-- _externalClassName
187: desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
188: java.lang.String.class, "_externalClassName",
189: "ExternalClassName",
190: org.exolab.castor.xml.NodeType.Attribute);
191: desc.setImmutable(true);
192: handler = (new org.exolab.castor.xml.XMLFieldHandler() {
193: public java.lang.Object getValue(java.lang.Object object)
194: throws IllegalStateException {
195: DataSourceDefinition target = (DataSourceDefinition) object;
196: return target.getExternalClassName();
197: }
198:
199: public void setValue(java.lang.Object object,
200: java.lang.Object value)
201: throws IllegalStateException,
202: IllegalArgumentException {
203: try {
204: DataSourceDefinition target = (DataSourceDefinition) object;
205: target
206: .setExternalClassName((java.lang.String) value);
207: } catch (java.lang.Exception ex) {
208: throw new IllegalStateException(ex.toString());
209: }
210: }
211:
212: public java.lang.Object newInstance(java.lang.Object parent) {
213: return null;
214: }
215: });
216: desc.setHandler(handler);
217: addFieldDescriptor(desc);
218:
219: //-- validation code for: _externalClassName
220: fieldValidator = new org.exolab.castor.xml.FieldValidator();
221: { //-- local scope
222: StringValidator typeValidator = new StringValidator();
223: typeValidator.setWhiteSpace("preserve");
224: fieldValidator.setValidator(typeValidator);
225: }
226: desc.setValidator(fieldValidator);
227: //-- _externalSourceData
228: desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
229: java.lang.String.class, "_externalSourceData",
230: "ExternalSourceData",
231: org.exolab.castor.xml.NodeType.Attribute);
232: desc.setImmutable(true);
233: handler = (new org.exolab.castor.xml.XMLFieldHandler() {
234: public java.lang.Object getValue(java.lang.Object object)
235: throws IllegalStateException {
236: DataSourceDefinition target = (DataSourceDefinition) object;
237: return target.getExternalSourceData();
238: }
239:
240: public void setValue(java.lang.Object object,
241: java.lang.Object value)
242: throws IllegalStateException,
243: IllegalArgumentException {
244: try {
245: DataSourceDefinition target = (DataSourceDefinition) object;
246: target
247: .setExternalSourceData((java.lang.String) value);
248: } catch (java.lang.Exception ex) {
249: throw new IllegalStateException(ex.toString());
250: }
251: }
252:
253: public java.lang.Object newInstance(java.lang.Object parent) {
254: return null;
255: }
256: });
257: desc.setHandler(handler);
258: addFieldDescriptor(desc);
259:
260: //-- validation code for: _externalSourceData
261: fieldValidator = new org.exolab.castor.xml.FieldValidator();
262: { //-- local scope
263: StringValidator typeValidator = new StringValidator();
264: typeValidator.setWhiteSpace("preserve");
265: fieldValidator.setValidator(typeValidator);
266: }
267: desc.setValidator(fieldValidator);
268: //-- _externalConnectionString
269: desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
270: java.lang.String.class, "_externalConnectionString",
271: "ExternalConnectionString",
272: org.exolab.castor.xml.NodeType.Attribute);
273: desc.setImmutable(true);
274: handler = (new org.exolab.castor.xml.XMLFieldHandler() {
275: public java.lang.Object getValue(java.lang.Object object)
276: throws IllegalStateException {
277: DataSourceDefinition target = (DataSourceDefinition) object;
278: return target.getExternalConnectionString();
279: }
280:
281: public void setValue(java.lang.Object object,
282: java.lang.Object value)
283: throws IllegalStateException,
284: IllegalArgumentException {
285: try {
286: DataSourceDefinition target = (DataSourceDefinition) object;
287: target
288: .setExternalConnectionString((java.lang.String) value);
289: } catch (java.lang.Exception ex) {
290: throw new IllegalStateException(ex.toString());
291: }
292: }
293:
294: public java.lang.Object newInstance(java.lang.Object parent) {
295: return null;
296: }
297: });
298: desc.setHandler(handler);
299: addFieldDescriptor(desc);
300:
301: //-- validation code for: _externalConnectionString
302: fieldValidator = new org.exolab.castor.xml.FieldValidator();
303: { //-- local scope
304: StringValidator typeValidator = new StringValidator();
305: typeValidator.setWhiteSpace("preserve");
306: fieldValidator.setValidator(typeValidator);
307: }
308: desc.setValidator(fieldValidator);
309: //-- _externalConnectionClassName
310: desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
311: java.lang.String.class, "_externalConnectionClassName",
312: "ExternalConnectionClassName",
313: org.exolab.castor.xml.NodeType.Attribute);
314: desc.setImmutable(true);
315: handler = (new org.exolab.castor.xml.XMLFieldHandler() {
316: public java.lang.Object getValue(java.lang.Object object)
317: throws IllegalStateException {
318: DataSourceDefinition target = (DataSourceDefinition) object;
319: return target.getExternalConnectionClassName();
320: }
321:
322: public void setValue(java.lang.Object object,
323: java.lang.Object value)
324: throws IllegalStateException,
325: IllegalArgumentException {
326: try {
327: DataSourceDefinition target = (DataSourceDefinition) object;
328: target
329: .setExternalConnectionClassName((java.lang.String) value);
330: } catch (java.lang.Exception ex) {
331: throw new IllegalStateException(ex.toString());
332: }
333: }
334:
335: public java.lang.Object newInstance(java.lang.Object parent) {
336: return null;
337: }
338: });
339: desc.setHandler(handler);
340: addFieldDescriptor(desc);
341:
342: //-- validation code for: _externalConnectionClassName
343: fieldValidator = new org.exolab.castor.xml.FieldValidator();
344: { //-- local scope
345: StringValidator typeValidator = new StringValidator();
346: typeValidator.setWhiteSpace("preserve");
347: fieldValidator.setValidator(typeValidator);
348: }
349: desc.setValidator(fieldValidator);
350: //-- _externalConnectionLocalUrl
351: desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
352: java.lang.String.class, "_externalConnectionLocalUrl",
353: "ExternalConnectionLocalUrl",
354: org.exolab.castor.xml.NodeType.Attribute);
355: desc.setImmutable(true);
356: handler = (new org.exolab.castor.xml.XMLFieldHandler() {
357: public java.lang.Object getValue(java.lang.Object object)
358: throws IllegalStateException {
359: DataSourceDefinition target = (DataSourceDefinition) object;
360: return target.getExternalConnectionLocalUrl();
361: }
362:
363: public void setValue(java.lang.Object object,
364: java.lang.Object value)
365: throws IllegalStateException,
366: IllegalArgumentException {
367: try {
368: DataSourceDefinition target = (DataSourceDefinition) object;
369: target
370: .setExternalConnectionLocalUrl((java.lang.String) value);
371: } catch (java.lang.Exception ex) {
372: throw new IllegalStateException(ex.toString());
373: }
374: }
375:
376: public java.lang.Object newInstance(java.lang.Object parent) {
377: return null;
378: }
379: });
380: desc.setHandler(handler);
381: addFieldDescriptor(desc);
382:
383: //-- validation code for: _externalConnectionLocalUrl
384: fieldValidator = new org.exolab.castor.xml.FieldValidator();
385: { //-- local scope
386: StringValidator typeValidator = new StringValidator();
387: typeValidator.setWhiteSpace("preserve");
388: fieldValidator.setValidator(typeValidator);
389: }
390: desc.setValidator(fieldValidator);
391: //-- _externalConnectionDistributedUrl
392: desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
393: java.lang.String.class,
394: "_externalConnectionDistributedUrl",
395: "ExternalConnectionDistributedUrl",
396: org.exolab.castor.xml.NodeType.Attribute);
397: desc.setImmutable(true);
398: handler = (new org.exolab.castor.xml.XMLFieldHandler() {
399: public java.lang.Object getValue(java.lang.Object object)
400: throws IllegalStateException {
401: DataSourceDefinition target = (DataSourceDefinition) object;
402: return target.getExternalConnectionDistributedUrl();
403: }
404:
405: public void setValue(java.lang.Object object,
406: java.lang.Object value)
407: throws IllegalStateException,
408: IllegalArgumentException {
409: try {
410: DataSourceDefinition target = (DataSourceDefinition) object;
411: target
412: .setExternalConnectionDistributedUrl((java.lang.String) value);
413: } catch (java.lang.Exception ex) {
414: throw new IllegalStateException(ex.toString());
415: }
416: }
417:
418: public java.lang.Object newInstance(java.lang.Object parent) {
419: return null;
420: }
421: });
422: desc.setHandler(handler);
423: addFieldDescriptor(desc);
424:
425: //-- validation code for: _externalConnectionDistributedUrl
426: fieldValidator = new org.exolab.castor.xml.FieldValidator();
427: { //-- local scope
428: StringValidator typeValidator = new StringValidator();
429: typeValidator.setWhiteSpace("preserve");
430: fieldValidator.setValidator(typeValidator);
431: }
432: desc.setValidator(fieldValidator);
433: //-- _externalConnectionUser
434: desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
435: java.lang.String.class, "_externalConnectionUser",
436: "ExternalConnectionUser",
437: org.exolab.castor.xml.NodeType.Attribute);
438: desc.setImmutable(true);
439: handler = (new org.exolab.castor.xml.XMLFieldHandler() {
440: public java.lang.Object getValue(java.lang.Object object)
441: throws IllegalStateException {
442: DataSourceDefinition target = (DataSourceDefinition) object;
443: return target.getExternalConnectionUser();
444: }
445:
446: public void setValue(java.lang.Object object,
447: java.lang.Object value)
448: throws IllegalStateException,
449: IllegalArgumentException {
450: try {
451: DataSourceDefinition target = (DataSourceDefinition) object;
452: target
453: .setExternalConnectionUser((java.lang.String) value);
454: } catch (java.lang.Exception ex) {
455: throw new IllegalStateException(ex.toString());
456: }
457: }
458:
459: public java.lang.Object newInstance(java.lang.Object parent) {
460: return null;
461: }
462: });
463: desc.setHandler(handler);
464: addFieldDescriptor(desc);
465:
466: //-- validation code for: _externalConnectionUser
467: fieldValidator = new org.exolab.castor.xml.FieldValidator();
468: { //-- local scope
469: StringValidator typeValidator = new StringValidator();
470: typeValidator.setWhiteSpace("preserve");
471: fieldValidator.setValidator(typeValidator);
472: }
473: desc.setValidator(fieldValidator);
474: //-- _externalConnectionPassword
475: desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
476: java.lang.String.class, "_externalConnectionPassword",
477: "ExternalConnectionPassword",
478: org.exolab.castor.xml.NodeType.Attribute);
479: desc.setImmutable(true);
480: handler = (new org.exolab.castor.xml.XMLFieldHandler() {
481: public java.lang.Object getValue(java.lang.Object object)
482: throws IllegalStateException {
483: DataSourceDefinition target = (DataSourceDefinition) object;
484: return target.getExternalConnectionPassword();
485: }
486:
487: public void setValue(java.lang.Object object,
488: java.lang.Object value)
489: throws IllegalStateException,
490: IllegalArgumentException {
491: try {
492: DataSourceDefinition target = (DataSourceDefinition) object;
493: target
494: .setExternalConnectionPassword((java.lang.String) value);
495: } catch (java.lang.Exception ex) {
496: throw new IllegalStateException(ex.toString());
497: }
498: }
499:
500: public java.lang.Object newInstance(java.lang.Object parent) {
501: return null;
502: }
503: });
504: desc.setHandler(handler);
505: addFieldDescriptor(desc);
506:
507: //-- validation code for: _externalConnectionPassword
508: fieldValidator = new org.exolab.castor.xml.FieldValidator();
509: { //-- local scope
510: StringValidator typeValidator = new StringValidator();
511: typeValidator.setWhiteSpace("preserve");
512: fieldValidator.setValidator(typeValidator);
513: }
514: desc.setValidator(fieldValidator);
515: //-- _datePattern
516: desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
517: java.lang.String.class, "_datePattern", "DatePattern",
518: org.exolab.castor.xml.NodeType.Attribute);
519: desc.setImmutable(true);
520: handler = (new org.exolab.castor.xml.XMLFieldHandler() {
521: public java.lang.Object getValue(java.lang.Object object)
522: throws IllegalStateException {
523: DataSourceDefinition target = (DataSourceDefinition) object;
524: return target.getDatePattern();
525: }
526:
527: public void setValue(java.lang.Object object,
528: java.lang.Object value)
529: throws IllegalStateException,
530: IllegalArgumentException {
531: try {
532: DataSourceDefinition target = (DataSourceDefinition) object;
533: target.setDatePattern((java.lang.String) value);
534: } catch (java.lang.Exception ex) {
535: throw new IllegalStateException(ex.toString());
536: }
537: }
538:
539: public java.lang.Object newInstance(java.lang.Object parent) {
540: return null;
541: }
542: });
543: desc.setHandler(handler);
544: addFieldDescriptor(desc);
545:
546: //-- validation code for: _datePattern
547: fieldValidator = new org.exolab.castor.xml.FieldValidator();
548: { //-- local scope
549: StringValidator typeValidator = new StringValidator();
550: typeValidator.setWhiteSpace("preserve");
551: fieldValidator.setValidator(typeValidator);
552: }
553: desc.setValidator(fieldValidator);
554: //-- _dateTimePattern
555: desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
556: java.lang.String.class, "_dateTimePattern",
557: "DateTimePattern",
558: org.exolab.castor.xml.NodeType.Attribute);
559: desc.setImmutable(true);
560: handler = (new org.exolab.castor.xml.XMLFieldHandler() {
561: public java.lang.Object getValue(java.lang.Object object)
562: throws IllegalStateException {
563: DataSourceDefinition target = (DataSourceDefinition) object;
564: return target.getDateTimePattern();
565: }
566:
567: public void setValue(java.lang.Object object,
568: java.lang.Object value)
569: throws IllegalStateException,
570: IllegalArgumentException {
571: try {
572: DataSourceDefinition target = (DataSourceDefinition) object;
573: target.setDateTimePattern((java.lang.String) value);
574: } catch (java.lang.Exception ex) {
575: throw new IllegalStateException(ex.toString());
576: }
577: }
578:
579: public java.lang.Object newInstance(java.lang.Object parent) {
580: return null;
581: }
582: });
583: desc.setHandler(handler);
584: addFieldDescriptor(desc);
585:
586: //-- validation code for: _dateTimePattern
587: fieldValidator = new org.exolab.castor.xml.FieldValidator();
588: { //-- local scope
589: StringValidator typeValidator = new StringValidator();
590: typeValidator.setWhiteSpace("preserve");
591: fieldValidator.setValidator(typeValidator);
592: }
593: desc.setValidator(fieldValidator);
594: //-- _sheetName
595: desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
596: java.lang.String.class, "_sheetName", "SheetName",
597: org.exolab.castor.xml.NodeType.Attribute);
598: desc.setImmutable(true);
599: handler = (new org.exolab.castor.xml.XMLFieldHandler() {
600: public java.lang.Object getValue(java.lang.Object object)
601: throws IllegalStateException {
602: DataSourceDefinition target = (DataSourceDefinition) object;
603: return target.getSheetName();
604: }
605:
606: public void setValue(java.lang.Object object,
607: java.lang.Object value)
608: throws IllegalStateException,
609: IllegalArgumentException {
610: try {
611: DataSourceDefinition target = (DataSourceDefinition) object;
612: target.setSheetName((java.lang.String) value);
613: } catch (java.lang.Exception ex) {
614: throw new IllegalStateException(ex.toString());
615: }
616: }
617:
618: public java.lang.Object newInstance(java.lang.Object parent) {
619: return null;
620: }
621: });
622: desc.setHandler(handler);
623: addFieldDescriptor(desc);
624:
625: //-- validation code for: _sheetName
626: fieldValidator = new org.exolab.castor.xml.FieldValidator();
627: { //-- local scope
628: StringValidator typeValidator = new StringValidator();
629: typeValidator.setWhiteSpace("preserve");
630: fieldValidator.setValidator(typeValidator);
631: }
632: desc.setValidator(fieldValidator);
633: //-- _dataInitialCell
634: desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
635: java.lang.String.class, "_dataInitialCell",
636: "DataInitialCell",
637: org.exolab.castor.xml.NodeType.Attribute);
638: desc.setImmutable(true);
639: handler = (new org.exolab.castor.xml.XMLFieldHandler() {
640: public java.lang.Object getValue(java.lang.Object object)
641: throws IllegalStateException {
642: DataSourceDefinition target = (DataSourceDefinition) object;
643: return target.getDataInitialCell();
644: }
645:
646: public void setValue(java.lang.Object object,
647: java.lang.Object value)
648: throws IllegalStateException,
649: IllegalArgumentException {
650: try {
651: DataSourceDefinition target = (DataSourceDefinition) object;
652: target.setDataInitialCell((java.lang.String) value);
653: } catch (java.lang.Exception ex) {
654: throw new IllegalStateException(ex.toString());
655: }
656: }
657:
658: public java.lang.Object newInstance(java.lang.Object parent) {
659: return null;
660: }
661: });
662: desc.setHandler(handler);
663: addFieldDescriptor(desc);
664:
665: //-- validation code for: _dataInitialCell
666: fieldValidator = new org.exolab.castor.xml.FieldValidator();
667: { //-- local scope
668: StringValidator typeValidator = new StringValidator();
669: typeValidator.setWhiteSpace("preserve");
670: fieldValidator.setValidator(typeValidator);
671: }
672: desc.setValidator(fieldValidator);
673: //-- _dataEndingCell
674: desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
675: java.lang.String.class, "_dataEndingCell",
676: "DataEndingCell",
677: org.exolab.castor.xml.NodeType.Attribute);
678: desc.setImmutable(true);
679: handler = (new org.exolab.castor.xml.XMLFieldHandler() {
680: public java.lang.Object getValue(java.lang.Object object)
681: throws IllegalStateException {
682: DataSourceDefinition target = (DataSourceDefinition) object;
683: return target.getDataEndingCell();
684: }
685:
686: public void setValue(java.lang.Object object,
687: java.lang.Object value)
688: throws IllegalStateException,
689: IllegalArgumentException {
690: try {
691: DataSourceDefinition target = (DataSourceDefinition) object;
692: target.setDataEndingCell((java.lang.String) value);
693: } catch (java.lang.Exception ex) {
694: throw new IllegalStateException(ex.toString());
695: }
696: }
697:
698: public java.lang.Object newInstance(java.lang.Object parent) {
699: return null;
700: }
701: });
702: desc.setHandler(handler);
703: addFieldDescriptor(desc);
704:
705: //-- validation code for: _dataEndingCell
706: fieldValidator = new org.exolab.castor.xml.FieldValidator();
707: { //-- local scope
708: StringValidator typeValidator = new StringValidator();
709: typeValidator.setWhiteSpace("preserve");
710: fieldValidator.setValidator(typeValidator);
711: }
712: desc.setValidator(fieldValidator);
713: //-- initialize element descriptors
714:
715: } //-- com.calipso.reportgenerator.reportdefinitions.DataSourceDefinitionDescriptor()
716:
717: //-----------/
718: //- Methods -/
719: //-----------/
720:
721: /**
722: * Method getAccessMode
723: */
724: public org.exolab.castor.mapping.AccessMode getAccessMode() {
725: return null;
726: } //-- org.exolab.castor.mapping.AccessMode getAccessMode()
727:
728: /**
729: * Method getExtends
730: */
731: public org.exolab.castor.mapping.ClassDescriptor getExtends() {
732: return null;
733: } //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
734:
735: /**
736: * Method getIdentity
737: */
738: public org.exolab.castor.mapping.FieldDescriptor getIdentity() {
739: return identity;
740: } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
741:
742: /**
743: * Method getJavaClass
744: */
745: public java.lang.Class getJavaClass() {
746: return com.calipso.reportgenerator.reportdefinitions.DataSourceDefinition.class;
747: } //-- java.lang.Class getJavaClass()
748:
749: /**
750: * Method getNameSpacePrefix
751: */
752: public java.lang.String getNameSpacePrefix() {
753: return nsPrefix;
754: } //-- java.lang.String getNameSpacePrefix()
755:
756: /**
757: * Method getNameSpaceURI
758: */
759: public java.lang.String getNameSpaceURI() {
760: return nsURI;
761: } //-- java.lang.String getNameSpaceURI()
762:
763: /**
764: * Method getValidator
765: */
766: public org.exolab.castor.xml.TypeValidator getValidator() {
767: return this ;
768: } //-- org.exolab.castor.xml.TypeValidator getValidator()
769:
770: /**
771: * Method getXMLName
772: */
773: public java.lang.String getXMLName() {
774: return xmlName;
775: } //-- java.lang.String getXMLName()
776:
777: }
|