Source Code Cross Referenced for ReportSourceDefinitionDescriptor.java in  » Report » jmagallanes-1.0 » com » calipso » reportgenerator » reportdefinitions » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Report » jmagallanes 1.0 » com.calipso.reportgenerator.reportdefinitions 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


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 ReportSourceDefinitionDescriptor.
021:         * 
022:         * @version $Revision$ $Date$
023:         */
024:        public class ReportSourceDefinitionDescriptor 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 ReportSourceDefinitionDescriptor() {
056:                super ();
057:                xmlName = "ReportSourceDefinition";
058:
059:                //-- set grouping compositor
060:                setCompositorAsSequence();
061:                org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
062:                org.exolab.castor.xml.XMLFieldHandler handler = null;
063:                org.exolab.castor.xml.FieldValidator fieldValidator = null;
064:                //-- initialize attribute descriptors
065:
066:                //-- _id
067:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
068:                        java.lang.String.class, "_id", "Id",
069:                        org.exolab.castor.xml.NodeType.Attribute);
070:                desc.setImmutable(true);
071:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
072:                    public java.lang.Object getValue(java.lang.Object object)
073:                            throws IllegalStateException {
074:                        ReportSourceDefinition target = (ReportSourceDefinition) object;
075:                        return target.getId();
076:                    }
077:
078:                    public void setValue(java.lang.Object object,
079:                            java.lang.Object value)
080:                            throws IllegalStateException,
081:                            IllegalArgumentException {
082:                        try {
083:                            ReportSourceDefinition target = (ReportSourceDefinition) object;
084:                            target.setId((java.lang.String) value);
085:                        } catch (java.lang.Exception ex) {
086:                            throw new IllegalStateException(ex.toString());
087:                        }
088:                    }
089:
090:                    public java.lang.Object newInstance(java.lang.Object parent) {
091:                        return null;
092:                    }
093:                });
094:                desc.setHandler(handler);
095:                desc.setRequired(true);
096:                addFieldDescriptor(desc);
097:
098:                //-- validation code for: _id
099:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
100:                fieldValidator.setMinOccurs(1);
101:                { //-- local scope
102:                    StringValidator typeValidator = new StringValidator();
103:                    typeValidator.setWhiteSpace("preserve");
104:                    fieldValidator.setValidator(typeValidator);
105:                }
106:                desc.setValidator(fieldValidator);
107:                //-- _cached
108:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
109:                        java.lang.Boolean.TYPE, "_cached", "Cached",
110:                        org.exolab.castor.xml.NodeType.Attribute);
111:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
112:                    public java.lang.Object getValue(java.lang.Object object)
113:                            throws IllegalStateException {
114:                        ReportSourceDefinition target = (ReportSourceDefinition) object;
115:                        if (!target.hasCached())
116:                            return null;
117:                        return new Boolean(target.getCached());
118:                    }
119:
120:                    public void setValue(java.lang.Object object,
121:                            java.lang.Object value)
122:                            throws IllegalStateException,
123:                            IllegalArgumentException {
124:                        try {
125:                            ReportSourceDefinition target = (ReportSourceDefinition) object;
126:                            // ignore null values for non optional primitives
127:                            if (value == null)
128:                                return;
129:
130:                            target.setCached(((Boolean) value).booleanValue());
131:                        } catch (java.lang.Exception ex) {
132:                            throw new IllegalStateException(ex.toString());
133:                        }
134:                    }
135:
136:                    public java.lang.Object newInstance(java.lang.Object parent) {
137:                        return null;
138:                    }
139:                });
140:                desc.setHandler(handler);
141:                desc.setRequired(true);
142:                addFieldDescriptor(desc);
143:
144:                //-- validation code for: _cached
145:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
146:                fieldValidator.setMinOccurs(1);
147:                { //-- local scope
148:                    BooleanValidator typeValidator = new BooleanValidator();
149:                    fieldValidator.setValidator(typeValidator);
150:                }
151:                desc.setValidator(fieldValidator);
152:                //-- _expiration
153:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
154:                        java.math.BigDecimal.class, "_expiration",
155:                        "Expiration", org.exolab.castor.xml.NodeType.Attribute);
156:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
157:                    public java.lang.Object getValue(java.lang.Object object)
158:                            throws IllegalStateException {
159:                        ReportSourceDefinition target = (ReportSourceDefinition) object;
160:                        return target.getExpiration();
161:                    }
162:
163:                    public void setValue(java.lang.Object object,
164:                            java.lang.Object value)
165:                            throws IllegalStateException,
166:                            IllegalArgumentException {
167:                        try {
168:                            ReportSourceDefinition target = (ReportSourceDefinition) object;
169:                            target.setExpiration((java.math.BigDecimal) value);
170:                        } catch (java.lang.Exception ex) {
171:                            throw new IllegalStateException(ex.toString());
172:                        }
173:                    }
174:
175:                    public java.lang.Object newInstance(java.lang.Object parent) {
176:                        return new java.math.BigDecimal(0);
177:                    }
178:                });
179:                desc.setHandler(handler);
180:                desc.setImmutable(true);
181:                addFieldDescriptor(desc);
182:
183:                //-- validation code for: _expiration
184:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
185:                { //-- local scope
186:                    DecimalValidator typeValidator = new DecimalValidator();
187:                    fieldValidator.setValidator(typeValidator);
188:                }
189:                desc.setValidator(fieldValidator);
190:                //-- _incrementalDimension
191:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
192:                        java.lang.String.class, "_incrementalDimension",
193:                        "IncrementalDimension",
194:                        org.exolab.castor.xml.NodeType.Attribute);
195:                desc.setImmutable(true);
196:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
197:                    public java.lang.Object getValue(java.lang.Object object)
198:                            throws IllegalStateException {
199:                        ReportSourceDefinition target = (ReportSourceDefinition) object;
200:                        return target.getIncrementalDimension();
201:                    }
202:
203:                    public void setValue(java.lang.Object object,
204:                            java.lang.Object value)
205:                            throws IllegalStateException,
206:                            IllegalArgumentException {
207:                        try {
208:                            ReportSourceDefinition target = (ReportSourceDefinition) object;
209:                            target
210:                                    .setIncrementalDimension((java.lang.String) value);
211:                        } catch (java.lang.Exception ex) {
212:                            throw new IllegalStateException(ex.toString());
213:                        }
214:                    }
215:
216:                    public java.lang.Object newInstance(java.lang.Object parent) {
217:                        return null;
218:                    }
219:                });
220:                desc.setHandler(handler);
221:                addFieldDescriptor(desc);
222:
223:                //-- validation code for: _incrementalDimension
224:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
225:                { //-- local scope
226:                    StringValidator typeValidator = new StringValidator();
227:                    typeValidator.setWhiteSpace("preserve");
228:                    fieldValidator.setValidator(typeValidator);
229:                }
230:                desc.setValidator(fieldValidator);
231:                //-- _multilanguage
232:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
233:                        java.lang.Boolean.TYPE, "_multilanguage",
234:                        "Multilanguage",
235:                        org.exolab.castor.xml.NodeType.Attribute);
236:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
237:                    public java.lang.Object getValue(java.lang.Object object)
238:                            throws IllegalStateException {
239:                        ReportSourceDefinition target = (ReportSourceDefinition) object;
240:                        if (!target.hasMultilanguage())
241:                            return null;
242:                        return new Boolean(target.getMultilanguage());
243:                    }
244:
245:                    public void setValue(java.lang.Object object,
246:                            java.lang.Object value)
247:                            throws IllegalStateException,
248:                            IllegalArgumentException {
249:                        try {
250:                            ReportSourceDefinition target = (ReportSourceDefinition) object;
251:                            // if null, use delete method for optional primitives 
252:                            if (value == null) {
253:                                target.deleteMultilanguage();
254:                                return;
255:                            }
256:                            target.setMultilanguage(((Boolean) value)
257:                                    .booleanValue());
258:                        } catch (java.lang.Exception ex) {
259:                            throw new IllegalStateException(ex.toString());
260:                        }
261:                    }
262:
263:                    public java.lang.Object newInstance(java.lang.Object parent) {
264:                        return null;
265:                    }
266:                });
267:                desc.setHandler(handler);
268:                addFieldDescriptor(desc);
269:
270:                //-- validation code for: _multilanguage
271:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
272:                { //-- local scope
273:                    BooleanValidator typeValidator = new BooleanValidator();
274:                    fieldValidator.setValidator(typeValidator);
275:                }
276:                desc.setValidator(fieldValidator);
277:                //-- _maxRowsDimensionReference
278:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
279:                        java.lang.String.class, "_maxRowsDimensionReference",
280:                        "MaxRowsDimensionReference",
281:                        org.exolab.castor.xml.NodeType.Attribute);
282:                desc.setImmutable(true);
283:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
284:                    public java.lang.Object getValue(java.lang.Object object)
285:                            throws IllegalStateException {
286:                        ReportSourceDefinition target = (ReportSourceDefinition) object;
287:                        return target.getMaxRowsDimensionReference();
288:                    }
289:
290:                    public void setValue(java.lang.Object object,
291:                            java.lang.Object value)
292:                            throws IllegalStateException,
293:                            IllegalArgumentException {
294:                        try {
295:                            ReportSourceDefinition target = (ReportSourceDefinition) object;
296:                            target
297:                                    .setMaxRowsDimensionReference((java.lang.String) value);
298:                        } catch (java.lang.Exception ex) {
299:                            throw new IllegalStateException(ex.toString());
300:                        }
301:                    }
302:
303:                    public java.lang.Object newInstance(java.lang.Object parent) {
304:                        return null;
305:                    }
306:                });
307:                desc.setHandler(handler);
308:                addFieldDescriptor(desc);
309:
310:                //-- validation code for: _maxRowsDimensionReference
311:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
312:                { //-- local scope
313:                    StringValidator typeValidator = new StringValidator();
314:                    typeValidator.setWhiteSpace("preserve");
315:                    fieldValidator.setValidator(typeValidator);
316:                }
317:                desc.setValidator(fieldValidator);
318:                //-- _maxRowCount
319:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
320:                        java.lang.Integer.TYPE, "_maxRowCount", "MaxRowCount",
321:                        org.exolab.castor.xml.NodeType.Attribute);
322:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
323:                    public java.lang.Object getValue(java.lang.Object object)
324:                            throws IllegalStateException {
325:                        ReportSourceDefinition target = (ReportSourceDefinition) object;
326:                        if (!target.hasMaxRowCount())
327:                            return null;
328:                        return new Integer(target.getMaxRowCount());
329:                    }
330:
331:                    public void setValue(java.lang.Object object,
332:                            java.lang.Object value)
333:                            throws IllegalStateException,
334:                            IllegalArgumentException {
335:                        try {
336:                            ReportSourceDefinition target = (ReportSourceDefinition) object;
337:                            // if null, use delete method for optional primitives 
338:                            if (value == null) {
339:                                target.deleteMaxRowCount();
340:                                return;
341:                            }
342:                            target.setMaxRowCount(((Integer) value).intValue());
343:                        } catch (java.lang.Exception ex) {
344:                            throw new IllegalStateException(ex.toString());
345:                        }
346:                    }
347:
348:                    public java.lang.Object newInstance(java.lang.Object parent) {
349:                        return null;
350:                    }
351:                });
352:                desc.setHandler(handler);
353:                addFieldDescriptor(desc);
354:
355:                //-- validation code for: _maxRowCount
356:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
357:                { //-- local scope
358:                    IntegerValidator typeValidator = new IntegerValidator();
359:                    fieldValidator.setValidator(typeValidator);
360:                }
361:                desc.setValidator(fieldValidator);
362:                //-- _datawarehouseSaved
363:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
364:                        java.lang.Boolean.TYPE, "_datawarehouseSaved",
365:                        "DatawarehouseSaved",
366:                        org.exolab.castor.xml.NodeType.Attribute);
367:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
368:                    public java.lang.Object getValue(java.lang.Object object)
369:                            throws IllegalStateException {
370:                        ReportSourceDefinition target = (ReportSourceDefinition) object;
371:                        if (!target.hasDatawarehouseSaved())
372:                            return null;
373:                        return new Boolean(target.getDatawarehouseSaved());
374:                    }
375:
376:                    public void setValue(java.lang.Object object,
377:                            java.lang.Object value)
378:                            throws IllegalStateException,
379:                            IllegalArgumentException {
380:                        try {
381:                            ReportSourceDefinition target = (ReportSourceDefinition) object;
382:                            // if null, use delete method for optional primitives 
383:                            if (value == null) {
384:                                target.deleteDatawarehouseSaved();
385:                                return;
386:                            }
387:                            target.setDatawarehouseSaved(((Boolean) value)
388:                                    .booleanValue());
389:                        } catch (java.lang.Exception ex) {
390:                            throw new IllegalStateException(ex.toString());
391:                        }
392:                    }
393:
394:                    public java.lang.Object newInstance(java.lang.Object parent) {
395:                        return null;
396:                    }
397:                });
398:                desc.setHandler(handler);
399:                addFieldDescriptor(desc);
400:
401:                //-- validation code for: _datawarehouseSaved
402:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
403:                { //-- local scope
404:                    BooleanValidator typeValidator = new BooleanValidator();
405:                    fieldValidator.setValidator(typeValidator);
406:                }
407:                desc.setValidator(fieldValidator);
408:                //-- initialize element descriptors
409:
410:                //-- _dimensionSourceDefinitions
411:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
412:                        com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinitions.class,
413:                        "_dimensionSourceDefinitions",
414:                        "DimensionSourceDefinitions",
415:                        org.exolab.castor.xml.NodeType.Element);
416:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
417:                    public java.lang.Object getValue(java.lang.Object object)
418:                            throws IllegalStateException {
419:                        ReportSourceDefinition target = (ReportSourceDefinition) object;
420:                        return target.getDimensionSourceDefinitions();
421:                    }
422:
423:                    public void setValue(java.lang.Object object,
424:                            java.lang.Object value)
425:                            throws IllegalStateException,
426:                            IllegalArgumentException {
427:                        try {
428:                            ReportSourceDefinition target = (ReportSourceDefinition) object;
429:                            target
430:                                    .setDimensionSourceDefinitions((com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinitions) value);
431:                        } catch (java.lang.Exception ex) {
432:                            throw new IllegalStateException(ex.toString());
433:                        }
434:                    }
435:
436:                    public java.lang.Object newInstance(java.lang.Object parent) {
437:                        return new com.calipso.reportgenerator.reportdefinitions.DimensionSourceDefinitions();
438:                    }
439:                });
440:                desc.setHandler(handler);
441:                desc.setRequired(true);
442:                desc.setMultivalued(false);
443:                addFieldDescriptor(desc);
444:
445:                //-- validation code for: _dimensionSourceDefinitions
446:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
447:                fieldValidator.setMinOccurs(1);
448:                { //-- local scope
449:                }
450:                desc.setValidator(fieldValidator);
451:                //-- _metricSourceDefinitions
452:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
453:                        com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinitions.class,
454:                        "_metricSourceDefinitions", "MetricSourceDefinitions",
455:                        org.exolab.castor.xml.NodeType.Element);
456:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
457:                    public java.lang.Object getValue(java.lang.Object object)
458:                            throws IllegalStateException {
459:                        ReportSourceDefinition target = (ReportSourceDefinition) object;
460:                        return target.getMetricSourceDefinitions();
461:                    }
462:
463:                    public void setValue(java.lang.Object object,
464:                            java.lang.Object value)
465:                            throws IllegalStateException,
466:                            IllegalArgumentException {
467:                        try {
468:                            ReportSourceDefinition target = (ReportSourceDefinition) object;
469:                            target
470:                                    .setMetricSourceDefinitions((com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinitions) value);
471:                        } catch (java.lang.Exception ex) {
472:                            throw new IllegalStateException(ex.toString());
473:                        }
474:                    }
475:
476:                    public java.lang.Object newInstance(java.lang.Object parent) {
477:                        return new com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinitions();
478:                    }
479:                });
480:                desc.setHandler(handler);
481:                desc.setRequired(true);
482:                desc.setMultivalued(false);
483:                addFieldDescriptor(desc);
484:
485:                //-- validation code for: _metricSourceDefinitions
486:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
487:                fieldValidator.setMinOccurs(1);
488:                { //-- local scope
489:                }
490:                desc.setValidator(fieldValidator);
491:                //-- _filterDefinitions
492:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
493:                        com.calipso.reportgenerator.reportdefinitions.FilterDefinitions.class,
494:                        "_filterDefinitions", "FilterDefinitions",
495:                        org.exolab.castor.xml.NodeType.Element);
496:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
497:                    public java.lang.Object getValue(java.lang.Object object)
498:                            throws IllegalStateException {
499:                        ReportSourceDefinition target = (ReportSourceDefinition) object;
500:                        return target.getFilterDefinitions();
501:                    }
502:
503:                    public void setValue(java.lang.Object object,
504:                            java.lang.Object value)
505:                            throws IllegalStateException,
506:                            IllegalArgumentException {
507:                        try {
508:                            ReportSourceDefinition target = (ReportSourceDefinition) object;
509:                            target
510:                                    .setFilterDefinitions((com.calipso.reportgenerator.reportdefinitions.FilterDefinitions) value);
511:                        } catch (java.lang.Exception ex) {
512:                            throw new IllegalStateException(ex.toString());
513:                        }
514:                    }
515:
516:                    public java.lang.Object newInstance(java.lang.Object parent) {
517:                        return new com.calipso.reportgenerator.reportdefinitions.FilterDefinitions();
518:                    }
519:                });
520:                desc.setHandler(handler);
521:                desc.setMultivalued(false);
522:                addFieldDescriptor(desc);
523:
524:                //-- validation code for: _filterDefinitions
525:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
526:                { //-- local scope
527:                }
528:                desc.setValidator(fieldValidator);
529:                //-- _dataSourceDefinitions
530:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
531:                        com.calipso.reportgenerator.reportdefinitions.DataSourceDefinitions.class,
532:                        "_dataSourceDefinitions", "DataSourceDefinitions",
533:                        org.exolab.castor.xml.NodeType.Element);
534:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
535:                    public java.lang.Object getValue(java.lang.Object object)
536:                            throws IllegalStateException {
537:                        ReportSourceDefinition target = (ReportSourceDefinition) object;
538:                        return target.getDataSourceDefinitions();
539:                    }
540:
541:                    public void setValue(java.lang.Object object,
542:                            java.lang.Object value)
543:                            throws IllegalStateException,
544:                            IllegalArgumentException {
545:                        try {
546:                            ReportSourceDefinition target = (ReportSourceDefinition) object;
547:                            target
548:                                    .setDataSourceDefinitions((com.calipso.reportgenerator.reportdefinitions.DataSourceDefinitions) value);
549:                        } catch (java.lang.Exception ex) {
550:                            throw new IllegalStateException(ex.toString());
551:                        }
552:                    }
553:
554:                    public java.lang.Object newInstance(java.lang.Object parent) {
555:                        return new com.calipso.reportgenerator.reportdefinitions.DataSourceDefinitions();
556:                    }
557:                });
558:                desc.setHandler(handler);
559:                desc.setRequired(true);
560:                desc.setMultivalued(false);
561:                addFieldDescriptor(desc);
562:
563:                //-- validation code for: _dataSourceDefinitions
564:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
565:                fieldValidator.setMinOccurs(1);
566:                { //-- local scope
567:                }
568:                desc.setValidator(fieldValidator);
569:                //-- _parameterValues
570:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
571:                        com.calipso.reportgenerator.reportdefinitions.ParameterValues.class,
572:                        "_parameterValues", "ParameterValues",
573:                        org.exolab.castor.xml.NodeType.Element);
574:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
575:                    public java.lang.Object getValue(java.lang.Object object)
576:                            throws IllegalStateException {
577:                        ReportSourceDefinition target = (ReportSourceDefinition) object;
578:                        return target.getParameterValues();
579:                    }
580:
581:                    public void setValue(java.lang.Object object,
582:                            java.lang.Object value)
583:                            throws IllegalStateException,
584:                            IllegalArgumentException {
585:                        try {
586:                            ReportSourceDefinition target = (ReportSourceDefinition) object;
587:                            target
588:                                    .setParameterValues((com.calipso.reportgenerator.reportdefinitions.ParameterValues) value);
589:                        } catch (java.lang.Exception ex) {
590:                            throw new IllegalStateException(ex.toString());
591:                        }
592:                    }
593:
594:                    public java.lang.Object newInstance(java.lang.Object parent) {
595:                        return new com.calipso.reportgenerator.reportdefinitions.ParameterValues();
596:                    }
597:                });
598:                desc.setHandler(handler);
599:                desc.setMultivalued(false);
600:                addFieldDescriptor(desc);
601:
602:                //-- validation code for: _parameterValues
603:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
604:                { //-- local scope
605:                }
606:                desc.setValidator(fieldValidator);
607:                //-- _localizations
608:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
609:                        com.calipso.reportgenerator.reportdefinitions.Localizations.class,
610:                        "_localizations", "Localizations",
611:                        org.exolab.castor.xml.NodeType.Element);
612:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
613:                    public java.lang.Object getValue(java.lang.Object object)
614:                            throws IllegalStateException {
615:                        ReportSourceDefinition target = (ReportSourceDefinition) object;
616:                        return target.getLocalizations();
617:                    }
618:
619:                    public void setValue(java.lang.Object object,
620:                            java.lang.Object value)
621:                            throws IllegalStateException,
622:                            IllegalArgumentException {
623:                        try {
624:                            ReportSourceDefinition target = (ReportSourceDefinition) object;
625:                            target
626:                                    .setLocalizations((com.calipso.reportgenerator.reportdefinitions.Localizations) value);
627:                        } catch (java.lang.Exception ex) {
628:                            throw new IllegalStateException(ex.toString());
629:                        }
630:                    }
631:
632:                    public java.lang.Object newInstance(java.lang.Object parent) {
633:                        return new com.calipso.reportgenerator.reportdefinitions.Localizations();
634:                    }
635:                });
636:                desc.setHandler(handler);
637:                desc.setMultivalued(false);
638:                addFieldDescriptor(desc);
639:
640:                //-- validation code for: _localizations
641:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
642:                { //-- local scope
643:                }
644:                desc.setValidator(fieldValidator);
645:            } //-- com.calipso.reportgenerator.reportdefinitions.ReportSourceDefinitionDescriptor()
646:
647:            //-----------/
648:            //- Methods -/
649:            //-----------/
650:
651:            /**
652:             * Method getAccessMode
653:             */
654:            public org.exolab.castor.mapping.AccessMode getAccessMode() {
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:                return null;
663:            } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() 
664:
665:            /**
666:             * Method getIdentity
667:             */
668:            public org.exolab.castor.mapping.FieldDescriptor getIdentity() {
669:                return identity;
670:            } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() 
671:
672:            /**
673:             * Method getJavaClass
674:             */
675:            public java.lang.Class getJavaClass() {
676:                return com.calipso.reportgenerator.reportdefinitions.ReportSourceDefinition.class;
677:            } //-- java.lang.Class getJavaClass() 
678:
679:            /**
680:             * Method getNameSpacePrefix
681:             */
682:            public java.lang.String getNameSpacePrefix() {
683:                return nsPrefix;
684:            } //-- java.lang.String getNameSpacePrefix() 
685:
686:            /**
687:             * Method getNameSpaceURI
688:             */
689:            public java.lang.String getNameSpaceURI() {
690:                return nsURI;
691:            } //-- java.lang.String getNameSpaceURI() 
692:
693:            /**
694:             * Method getValidator
695:             */
696:            public org.exolab.castor.xml.TypeValidator getValidator() {
697:                return this ;
698:            } //-- org.exolab.castor.xml.TypeValidator getValidator() 
699:
700:            /**
701:             * Method getXMLName
702:             */
703:            public java.lang.String getXMLName() {
704:                return xmlName;
705:            } //-- java.lang.String getXMLName() 
706:
707:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.