Source Code Cross Referenced for MetricSourceDefinitionDescriptor.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 MetricSourceDefinitionDescriptor.
021:         * 
022:         * @version $Revision$ $Date$
023:         */
024:        public class MetricSourceDefinitionDescriptor 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 MetricSourceDefinitionDescriptor() {
056:                super ();
057:                xmlName = "MetricSourceDefinition";
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:                        MetricSourceDefinition target = (MetricSourceDefinition) 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:                            MetricSourceDefinition target = (MetricSourceDefinition) 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:                //-- _description
105:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
106:                        java.lang.String.class, "_description", "Description",
107:                        org.exolab.castor.xml.NodeType.Attribute);
108:                desc.setImmutable(true);
109:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
110:                    public java.lang.Object getValue(java.lang.Object object)
111:                            throws IllegalStateException {
112:                        MetricSourceDefinition target = (MetricSourceDefinition) object;
113:                        return target.getDescription();
114:                    }
115:
116:                    public void setValue(java.lang.Object object,
117:                            java.lang.Object value)
118:                            throws IllegalStateException,
119:                            IllegalArgumentException {
120:                        try {
121:                            MetricSourceDefinition target = (MetricSourceDefinition) object;
122:                            target.setDescription((java.lang.String) value);
123:                        } catch (java.lang.Exception ex) {
124:                            throw new IllegalStateException(ex.toString());
125:                        }
126:                    }
127:
128:                    public java.lang.Object newInstance(java.lang.Object parent) {
129:                        return null;
130:                    }
131:                });
132:                desc.setHandler(handler);
133:                desc.setRequired(true);
134:                addFieldDescriptor(desc);
135:
136:                //-- validation code for: _description
137:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
138:                fieldValidator.setMinOccurs(1);
139:                { //-- local scope
140:                    StringValidator typeValidator = new StringValidator();
141:                    typeValidator.setWhiteSpace("preserve");
142:                    fieldValidator.setValidator(typeValidator);
143:                }
144:                desc.setValidator(fieldValidator);
145:                //-- _aggregateType
146:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
147:                        com.calipso.reportgenerator.reportdefinitions.types.CalculationType.class,
148:                        "_aggregateType", "AggregateType",
149:                        org.exolab.castor.xml.NodeType.Attribute);
150:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
151:                    public java.lang.Object getValue(java.lang.Object object)
152:                            throws IllegalStateException {
153:                        MetricSourceDefinition target = (MetricSourceDefinition) object;
154:                        return target.getAggregateType();
155:                    }
156:
157:                    public void setValue(java.lang.Object object,
158:                            java.lang.Object value)
159:                            throws IllegalStateException,
160:                            IllegalArgumentException {
161:                        try {
162:                            MetricSourceDefinition target = (MetricSourceDefinition) object;
163:                            target
164:                                    .setAggregateType((com.calipso.reportgenerator.reportdefinitions.types.CalculationType) value);
165:                        } catch (java.lang.Exception ex) {
166:                            throw new IllegalStateException(ex.toString());
167:                        }
168:                    }
169:
170:                    public java.lang.Object newInstance(java.lang.Object parent) {
171:                        return null;
172:                    }
173:                });
174:                desc
175:                        .setHandler(new org.exolab.castor.xml.handlers.EnumFieldHandler(
176:                                com.calipso.reportgenerator.reportdefinitions.types.CalculationType.class,
177:                                handler));
178:                desc.setImmutable(true);
179:                addFieldDescriptor(desc);
180:
181:                //-- validation code for: _aggregateType
182:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
183:                { //-- local scope
184:                }
185:                desc.setValidator(fieldValidator);
186:                //-- _groupFooterType
187:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
188:                        com.calipso.reportgenerator.reportdefinitions.types.CalculationType.class,
189:                        "_groupFooterType", "GroupFooterType",
190:                        org.exolab.castor.xml.NodeType.Attribute);
191:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
192:                    public java.lang.Object getValue(java.lang.Object object)
193:                            throws IllegalStateException {
194:                        MetricSourceDefinition target = (MetricSourceDefinition) object;
195:                        return target.getGroupFooterType();
196:                    }
197:
198:                    public void setValue(java.lang.Object object,
199:                            java.lang.Object value)
200:                            throws IllegalStateException,
201:                            IllegalArgumentException {
202:                        try {
203:                            MetricSourceDefinition target = (MetricSourceDefinition) object;
204:                            target
205:                                    .setGroupFooterType((com.calipso.reportgenerator.reportdefinitions.types.CalculationType) value);
206:                        } catch (java.lang.Exception ex) {
207:                            throw new IllegalStateException(ex.toString());
208:                        }
209:                    }
210:
211:                    public java.lang.Object newInstance(java.lang.Object parent) {
212:                        return null;
213:                    }
214:                });
215:                desc
216:                        .setHandler(new org.exolab.castor.xml.handlers.EnumFieldHandler(
217:                                com.calipso.reportgenerator.reportdefinitions.types.CalculationType.class,
218:                                handler));
219:                desc.setImmutable(true);
220:                addFieldDescriptor(desc);
221:
222:                //-- validation code for: _groupFooterType
223:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
224:                { //-- local scope
225:                }
226:                desc.setValidator(fieldValidator);
227:                //-- _calculated
228:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
229:                        java.lang.Boolean.TYPE, "_calculated", "Calculated",
230:                        org.exolab.castor.xml.NodeType.Attribute);
231:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
232:                    public java.lang.Object getValue(java.lang.Object object)
233:                            throws IllegalStateException {
234:                        MetricSourceDefinition target = (MetricSourceDefinition) object;
235:                        if (!target.hasCalculated())
236:                            return null;
237:                        return new Boolean(target.getCalculated());
238:                    }
239:
240:                    public void setValue(java.lang.Object object,
241:                            java.lang.Object value)
242:                            throws IllegalStateException,
243:                            IllegalArgumentException {
244:                        try {
245:                            MetricSourceDefinition target = (MetricSourceDefinition) object;
246:                            // if null, use delete method for optional primitives 
247:                            if (value == null) {
248:                                target.deleteCalculated();
249:                                return;
250:                            }
251:                            target.setCalculated(((Boolean) value)
252:                                    .booleanValue());
253:                        } catch (java.lang.Exception ex) {
254:                            throw new IllegalStateException(ex.toString());
255:                        }
256:                    }
257:
258:                    public java.lang.Object newInstance(java.lang.Object parent) {
259:                        return null;
260:                    }
261:                });
262:                desc.setHandler(handler);
263:                addFieldDescriptor(desc);
264:
265:                //-- validation code for: _calculated
266:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
267:                { //-- local scope
268:                    BooleanValidator typeValidator = new BooleanValidator();
269:                    fieldValidator.setValidator(typeValidator);
270:                }
271:                desc.setValidator(fieldValidator);
272:                //-- _aggregateFunction
273:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
274:                        java.lang.String.class, "_aggregateFunction",
275:                        "AggregateFunction",
276:                        org.exolab.castor.xml.NodeType.Attribute);
277:                desc.setImmutable(true);
278:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
279:                    public java.lang.Object getValue(java.lang.Object object)
280:                            throws IllegalStateException {
281:                        MetricSourceDefinition target = (MetricSourceDefinition) object;
282:                        return target.getAggregateFunction();
283:                    }
284:
285:                    public void setValue(java.lang.Object object,
286:                            java.lang.Object value)
287:                            throws IllegalStateException,
288:                            IllegalArgumentException {
289:                        try {
290:                            MetricSourceDefinition target = (MetricSourceDefinition) object;
291:                            target
292:                                    .setAggregateFunction((java.lang.String) value);
293:                        } catch (java.lang.Exception ex) {
294:                            throw new IllegalStateException(ex.toString());
295:                        }
296:                    }
297:
298:                    public java.lang.Object newInstance(java.lang.Object parent) {
299:                        return null;
300:                    }
301:                });
302:                desc.setHandler(handler);
303:                addFieldDescriptor(desc);
304:
305:                //-- validation code for: _aggregateFunction
306:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
307:                { //-- local scope
308:                    StringValidator typeValidator = new StringValidator();
309:                    typeValidator.setWhiteSpace("preserve");
310:                    fieldValidator.setValidator(typeValidator);
311:                }
312:                desc.setValidator(fieldValidator);
313:                //-- _groupFooterFunction
314:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
315:                        java.lang.String.class, "_groupFooterFunction",
316:                        "GroupFooterFunction",
317:                        org.exolab.castor.xml.NodeType.Attribute);
318:                desc.setImmutable(true);
319:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
320:                    public java.lang.Object getValue(java.lang.Object object)
321:                            throws IllegalStateException {
322:                        MetricSourceDefinition target = (MetricSourceDefinition) object;
323:                        return target.getGroupFooterFunction();
324:                    }
325:
326:                    public void setValue(java.lang.Object object,
327:                            java.lang.Object value)
328:                            throws IllegalStateException,
329:                            IllegalArgumentException {
330:                        try {
331:                            MetricSourceDefinition target = (MetricSourceDefinition) object;
332:                            target
333:                                    .setGroupFooterFunction((java.lang.String) value);
334:                        } catch (java.lang.Exception ex) {
335:                            throw new IllegalStateException(ex.toString());
336:                        }
337:                    }
338:
339:                    public java.lang.Object newInstance(java.lang.Object parent) {
340:                        return null;
341:                    }
342:                });
343:                desc.setHandler(handler);
344:                addFieldDescriptor(desc);
345:
346:                //-- validation code for: _groupFooterFunction
347:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
348:                { //-- local scope
349:                    StringValidator typeValidator = new StringValidator();
350:                    typeValidator.setWhiteSpace("preserve");
351:                    fieldValidator.setValidator(typeValidator);
352:                }
353:                desc.setValidator(fieldValidator);
354:                //-- _externalData
355:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
356:                        java.lang.String.class, "_externalData",
357:                        "ExternalData",
358:                        org.exolab.castor.xml.NodeType.Attribute);
359:                desc.setImmutable(true);
360:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
361:                    public java.lang.Object getValue(java.lang.Object object)
362:                            throws IllegalStateException {
363:                        MetricSourceDefinition target = (MetricSourceDefinition) object;
364:                        return target.getExternalData();
365:                    }
366:
367:                    public void setValue(java.lang.Object object,
368:                            java.lang.Object value)
369:                            throws IllegalStateException,
370:                            IllegalArgumentException {
371:                        try {
372:                            MetricSourceDefinition target = (MetricSourceDefinition) object;
373:                            target.setExternalData((java.lang.String) value);
374:                        } catch (java.lang.Exception ex) {
375:                            throw new IllegalStateException(ex.toString());
376:                        }
377:                    }
378:
379:                    public java.lang.Object newInstance(java.lang.Object parent) {
380:                        return null;
381:                    }
382:                });
383:                desc.setHandler(handler);
384:                addFieldDescriptor(desc);
385:
386:                //-- validation code for: _externalData
387:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
388:                { //-- local scope
389:                    StringValidator typeValidator = new StringValidator();
390:                    typeValidator.setWhiteSpace("preserve");
391:                    fieldValidator.setValidator(typeValidator);
392:                }
393:                desc.setValidator(fieldValidator);
394:                //-- _externalCalculated
395:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
396:                        java.lang.Boolean.TYPE, "_externalCalculated",
397:                        "ExternalCalculated",
398:                        org.exolab.castor.xml.NodeType.Attribute);
399:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
400:                    public java.lang.Object getValue(java.lang.Object object)
401:                            throws IllegalStateException {
402:                        MetricSourceDefinition target = (MetricSourceDefinition) object;
403:                        if (!target.hasExternalCalculated())
404:                            return null;
405:                        return new Boolean(target.getExternalCalculated());
406:                    }
407:
408:                    public void setValue(java.lang.Object object,
409:                            java.lang.Object value)
410:                            throws IllegalStateException,
411:                            IllegalArgumentException {
412:                        try {
413:                            MetricSourceDefinition target = (MetricSourceDefinition) object;
414:                            // if null, use delete method for optional primitives 
415:                            if (value == null) {
416:                                target.deleteExternalCalculated();
417:                                return;
418:                            }
419:                            target.setExternalCalculated(((Boolean) value)
420:                                    .booleanValue());
421:                        } catch (java.lang.Exception ex) {
422:                            throw new IllegalStateException(ex.toString());
423:                        }
424:                    }
425:
426:                    public java.lang.Object newInstance(java.lang.Object parent) {
427:                        return null;
428:                    }
429:                });
430:                desc.setHandler(handler);
431:                addFieldDescriptor(desc);
432:
433:                //-- validation code for: _externalCalculated
434:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
435:                { //-- local scope
436:                    BooleanValidator typeValidator = new BooleanValidator();
437:                    fieldValidator.setValidator(typeValidator);
438:                }
439:                desc.setValidator(fieldValidator);
440:                //-- initialize element descriptors
441:
442:            } //-- com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinitionDescriptor()
443:
444:            //-----------/
445:            //- Methods -/
446:            //-----------/
447:
448:            /**
449:             * Method getAccessMode
450:             */
451:            public org.exolab.castor.mapping.AccessMode getAccessMode() {
452:                return null;
453:            } //-- org.exolab.castor.mapping.AccessMode getAccessMode() 
454:
455:            /**
456:             * Method getExtends
457:             */
458:            public org.exolab.castor.mapping.ClassDescriptor getExtends() {
459:                return null;
460:            } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() 
461:
462:            /**
463:             * Method getIdentity
464:             */
465:            public org.exolab.castor.mapping.FieldDescriptor getIdentity() {
466:                return identity;
467:            } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() 
468:
469:            /**
470:             * Method getJavaClass
471:             */
472:            public java.lang.Class getJavaClass() {
473:                return com.calipso.reportgenerator.reportdefinitions.MetricSourceDefinition.class;
474:            } //-- java.lang.Class getJavaClass() 
475:
476:            /**
477:             * Method getNameSpacePrefix
478:             */
479:            public java.lang.String getNameSpacePrefix() {
480:                return nsPrefix;
481:            } //-- java.lang.String getNameSpacePrefix() 
482:
483:            /**
484:             * Method getNameSpaceURI
485:             */
486:            public java.lang.String getNameSpaceURI() {
487:                return nsURI;
488:            } //-- java.lang.String getNameSpaceURI() 
489:
490:            /**
491:             * Method getValidator
492:             */
493:            public org.exolab.castor.xml.TypeValidator getValidator() {
494:                return this ;
495:            } //-- org.exolab.castor.xml.TypeValidator getValidator() 
496:
497:            /**
498:             * Method getXMLName
499:             */
500:            public java.lang.String getXMLName() {
501:                return xmlName;
502:            } //-- java.lang.String getXMLName() 
503:
504:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.