Source Code Cross Referenced for LightBoxDefinitionDescriptor.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 LightBoxDefinitionDescriptor.
021:         * 
022:         * @version $Revision$ $Date$
023:         */
024:        public class LightBoxDefinitionDescriptor 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 LightBoxDefinitionDescriptor() {
056:                super ();
057:                xmlName = "LightBoxDefinition";
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:                //-- _metricName
064:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
065:                        java.lang.String.class, "_metricName", "MetricName",
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:                        LightBoxDefinition target = (LightBoxDefinition) object;
072:                        return target.getMetricName();
073:                    }
074:
075:                    public void setValue(java.lang.Object object,
076:                            java.lang.Object value)
077:                            throws IllegalStateException,
078:                            IllegalArgumentException {
079:                        try {
080:                            LightBoxDefinition target = (LightBoxDefinition) object;
081:                            target.setMetricName((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: _metricName
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:                //-- _type
105:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
106:                        com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionTypeType.class,
107:                        "_type", "Type",
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:                        LightBoxDefinition target = (LightBoxDefinition) object;
113:                        return target.getType();
114:                    }
115:
116:                    public void setValue(java.lang.Object object,
117:                            java.lang.Object value)
118:                            throws IllegalStateException,
119:                            IllegalArgumentException {
120:                        try {
121:                            LightBoxDefinition target = (LightBoxDefinition) object;
122:                            target
123:                                    .setType((com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionTypeType) 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.LightBoxDefinitionTypeType.class,
136:                                handler));
137:                desc.setImmutable(true);
138:                desc.setRequired(true);
139:                addFieldDescriptor(desc);
140:
141:                //-- validation code for: _type
142:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
143:                fieldValidator.setMinOccurs(1);
144:                { //-- local scope
145:                }
146:                desc.setValidator(fieldValidator);
147:                //-- _parameter
148:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
149:                        com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionParameterType.class,
150:                        "_parameter", "Parameter",
151:                        org.exolab.castor.xml.NodeType.Attribute);
152:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
153:                    public java.lang.Object getValue(java.lang.Object object)
154:                            throws IllegalStateException {
155:                        LightBoxDefinition target = (LightBoxDefinition) object;
156:                        return target.getParameter();
157:                    }
158:
159:                    public void setValue(java.lang.Object object,
160:                            java.lang.Object value)
161:                            throws IllegalStateException,
162:                            IllegalArgumentException {
163:                        try {
164:                            LightBoxDefinition target = (LightBoxDefinition) object;
165:                            target
166:                                    .setParameter((com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionParameterType) value);
167:                        } catch (java.lang.Exception ex) {
168:                            throw new IllegalStateException(ex.toString());
169:                        }
170:                    }
171:
172:                    public java.lang.Object newInstance(java.lang.Object parent) {
173:                        return null;
174:                    }
175:                });
176:                desc
177:                        .setHandler(new org.exolab.castor.xml.handlers.EnumFieldHandler(
178:                                com.calipso.reportgenerator.reportdefinitions.types.LightBoxDefinitionParameterType.class,
179:                                handler));
180:                desc.setImmutable(true);
181:                desc.setRequired(true);
182:                addFieldDescriptor(desc);
183:
184:                //-- validation code for: _parameter
185:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
186:                fieldValidator.setMinOccurs(1);
187:                { //-- local scope
188:                }
189:                desc.setValidator(fieldValidator);
190:                //-- _colorRed
191:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
192:                        java.lang.Integer.TYPE, "_colorRed", "ColorRed",
193:                        org.exolab.castor.xml.NodeType.Attribute);
194:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
195:                    public java.lang.Object getValue(java.lang.Object object)
196:                            throws IllegalStateException {
197:                        LightBoxDefinition target = (LightBoxDefinition) object;
198:                        if (!target.hasColorRed())
199:                            return null;
200:                        return new Integer(target.getColorRed());
201:                    }
202:
203:                    public void setValue(java.lang.Object object,
204:                            java.lang.Object value)
205:                            throws IllegalStateException,
206:                            IllegalArgumentException {
207:                        try {
208:                            LightBoxDefinition target = (LightBoxDefinition) object;
209:                            // ignore null values for non optional primitives
210:                            if (value == null)
211:                                return;
212:
213:                            target.setColorRed(((Integer) value).intValue());
214:                        } catch (java.lang.Exception ex) {
215:                            throw new IllegalStateException(ex.toString());
216:                        }
217:                    }
218:
219:                    public java.lang.Object newInstance(java.lang.Object parent) {
220:                        return null;
221:                    }
222:                });
223:                desc.setHandler(handler);
224:                desc.setRequired(true);
225:                addFieldDescriptor(desc);
226:
227:                //-- validation code for: _colorRed
228:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
229:                fieldValidator.setMinOccurs(1);
230:                { //-- local scope
231:                    IntegerValidator typeValidator = new IntegerValidator();
232:                    fieldValidator.setValidator(typeValidator);
233:                }
234:                desc.setValidator(fieldValidator);
235:                //-- _colorGreen
236:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
237:                        java.lang.Integer.TYPE, "_colorGreen", "ColorGreen",
238:                        org.exolab.castor.xml.NodeType.Attribute);
239:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
240:                    public java.lang.Object getValue(java.lang.Object object)
241:                            throws IllegalStateException {
242:                        LightBoxDefinition target = (LightBoxDefinition) object;
243:                        if (!target.hasColorGreen())
244:                            return null;
245:                        return new Integer(target.getColorGreen());
246:                    }
247:
248:                    public void setValue(java.lang.Object object,
249:                            java.lang.Object value)
250:                            throws IllegalStateException,
251:                            IllegalArgumentException {
252:                        try {
253:                            LightBoxDefinition target = (LightBoxDefinition) object;
254:                            // ignore null values for non optional primitives
255:                            if (value == null)
256:                                return;
257:
258:                            target.setColorGreen(((Integer) value).intValue());
259:                        } catch (java.lang.Exception ex) {
260:                            throw new IllegalStateException(ex.toString());
261:                        }
262:                    }
263:
264:                    public java.lang.Object newInstance(java.lang.Object parent) {
265:                        return null;
266:                    }
267:                });
268:                desc.setHandler(handler);
269:                desc.setRequired(true);
270:                addFieldDescriptor(desc);
271:
272:                //-- validation code for: _colorGreen
273:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
274:                fieldValidator.setMinOccurs(1);
275:                { //-- local scope
276:                    IntegerValidator typeValidator = new IntegerValidator();
277:                    fieldValidator.setValidator(typeValidator);
278:                }
279:                desc.setValidator(fieldValidator);
280:                //-- _colorBlue
281:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
282:                        java.lang.Integer.TYPE, "_colorBlue", "ColorBlue",
283:                        org.exolab.castor.xml.NodeType.Attribute);
284:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
285:                    public java.lang.Object getValue(java.lang.Object object)
286:                            throws IllegalStateException {
287:                        LightBoxDefinition target = (LightBoxDefinition) object;
288:                        if (!target.hasColorBlue())
289:                            return null;
290:                        return new Integer(target.getColorBlue());
291:                    }
292:
293:                    public void setValue(java.lang.Object object,
294:                            java.lang.Object value)
295:                            throws IllegalStateException,
296:                            IllegalArgumentException {
297:                        try {
298:                            LightBoxDefinition target = (LightBoxDefinition) object;
299:                            // ignore null values for non optional primitives
300:                            if (value == null)
301:                                return;
302:
303:                            target.setColorBlue(((Integer) value).intValue());
304:                        } catch (java.lang.Exception ex) {
305:                            throw new IllegalStateException(ex.toString());
306:                        }
307:                    }
308:
309:                    public java.lang.Object newInstance(java.lang.Object parent) {
310:                        return null;
311:                    }
312:                });
313:                desc.setHandler(handler);
314:                desc.setRequired(true);
315:                addFieldDescriptor(desc);
316:
317:                //-- validation code for: _colorBlue
318:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
319:                fieldValidator.setMinOccurs(1);
320:                { //-- local scope
321:                    IntegerValidator typeValidator = new IntegerValidator();
322:                    fieldValidator.setValidator(typeValidator);
323:                }
324:                desc.setValidator(fieldValidator);
325:                //-- _value
326:                desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
327:                        java.lang.String.class, "_value", "Value",
328:                        org.exolab.castor.xml.NodeType.Attribute);
329:                desc.setImmutable(true);
330:                handler = (new org.exolab.castor.xml.XMLFieldHandler() {
331:                    public java.lang.Object getValue(java.lang.Object object)
332:                            throws IllegalStateException {
333:                        LightBoxDefinition target = (LightBoxDefinition) object;
334:                        return target.getValue();
335:                    }
336:
337:                    public void setValue(java.lang.Object object,
338:                            java.lang.Object value)
339:                            throws IllegalStateException,
340:                            IllegalArgumentException {
341:                        try {
342:                            LightBoxDefinition target = (LightBoxDefinition) object;
343:                            target.setValue((java.lang.String) value);
344:                        } catch (java.lang.Exception ex) {
345:                            throw new IllegalStateException(ex.toString());
346:                        }
347:                    }
348:
349:                    public java.lang.Object newInstance(java.lang.Object parent) {
350:                        return null;
351:                    }
352:                });
353:                desc.setHandler(handler);
354:                desc.setRequired(true);
355:                addFieldDescriptor(desc);
356:
357:                //-- validation code for: _value
358:                fieldValidator = new org.exolab.castor.xml.FieldValidator();
359:                fieldValidator.setMinOccurs(1);
360:                { //-- local scope
361:                    StringValidator typeValidator = new StringValidator();
362:                    typeValidator.setWhiteSpace("preserve");
363:                    fieldValidator.setValidator(typeValidator);
364:                }
365:                desc.setValidator(fieldValidator);
366:                //-- initialize element descriptors
367:
368:            } //-- com.calipso.reportgenerator.reportdefinitions.LightBoxDefinitionDescriptor()
369:
370:            //-----------/
371:            //- Methods -/
372:            //-----------/
373:
374:            /**
375:             * Method getAccessMode
376:             */
377:            public org.exolab.castor.mapping.AccessMode getAccessMode() {
378:                return null;
379:            } //-- org.exolab.castor.mapping.AccessMode getAccessMode() 
380:
381:            /**
382:             * Method getExtends
383:             */
384:            public org.exolab.castor.mapping.ClassDescriptor getExtends() {
385:                return null;
386:            } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() 
387:
388:            /**
389:             * Method getIdentity
390:             */
391:            public org.exolab.castor.mapping.FieldDescriptor getIdentity() {
392:                return identity;
393:            } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() 
394:
395:            /**
396:             * Method getJavaClass
397:             */
398:            public java.lang.Class getJavaClass() {
399:                return com.calipso.reportgenerator.reportdefinitions.LightBoxDefinition.class;
400:            } //-- java.lang.Class getJavaClass() 
401:
402:            /**
403:             * Method getNameSpacePrefix
404:             */
405:            public java.lang.String getNameSpacePrefix() {
406:                return nsPrefix;
407:            } //-- java.lang.String getNameSpacePrefix() 
408:
409:            /**
410:             * Method getNameSpaceURI
411:             */
412:            public java.lang.String getNameSpaceURI() {
413:                return nsURI;
414:            } //-- java.lang.String getNameSpaceURI() 
415:
416:            /**
417:             * Method getValidator
418:             */
419:            public org.exolab.castor.xml.TypeValidator getValidator() {
420:                return this ;
421:            } //-- org.exolab.castor.xml.TypeValidator getValidator() 
422:
423:            /**
424:             * Method getXMLName
425:             */
426:            public java.lang.String getXMLName() {
427:                return xmlName;
428:            } //-- java.lang.String getXMLName() 
429:
430:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.