KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * This class was automatically generated with
3  * <a HREF="http://www.castor.org">Castor 0.9.4.3</a>, using an XML
4  * Schema.
5  * $Id$
6  */

7
8 package com.calipso.reportgenerator.reportdefinitions;
9
10   //---------------------------------/
11
//- Imported classes and packages -/
12
//---------------------------------/
13

14 import org.exolab.castor.mapping.AccessMode;
15 import org.exolab.castor.xml.TypeValidator;
16 import org.exolab.castor.xml.XMLFieldDescriptor;
17 import org.exolab.castor.xml.validators.*;
18
19 /**
20  * Class LightBoxerDescriptor.
21  *
22  * @version $Revision$ $Date$
23  */

24 public class LightBoxerDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {
25
26
27       //--------------------------/
28
//- Class/Member Variables -/
29
//--------------------------/
30

31     /**
32      * Field nsPrefix
33      */

34     private java.lang.String JavaDoc nsPrefix;
35
36     /**
37      * Field nsURI
38      */

39     private java.lang.String JavaDoc nsURI;
40
41     /**
42      * Field xmlName
43      */

44     private java.lang.String JavaDoc xmlName;
45
46     /**
47      * Field identity
48      */

49     private org.exolab.castor.xml.XMLFieldDescriptor identity;
50
51
52       //----------------/
53
//- Constructors -/
54
//----------------/
55

56     public LightBoxerDescriptor() {
57         super();
58         xmlName = "LightBoxer";
59         
60         //-- set grouping compositor
61
setCompositorAsSequence();
62         org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
63         org.exolab.castor.xml.XMLFieldHandler handler = null;
64         org.exolab.castor.xml.FieldValidator fieldValidator = null;
65         //-- initialize attribute descriptors
66

67         //-- initialize element descriptors
68

69         //-- _lightBoxDefinitionList
70
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.LightBoxDefinition.class, "_lightBoxDefinitionList", "LightBoxDefinition", org.exolab.castor.xml.NodeType.Element);
71         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
72             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
73                 throws IllegalStateException JavaDoc
74             {
75                 LightBoxer target = (LightBoxer) object;
76                 return target.getLightBoxDefinition();
77             }
78             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
79                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
80             {
81                 try {
82                     LightBoxer target = (LightBoxer) object;
83                     target.addLightBoxDefinition( (com.calipso.reportgenerator.reportdefinitions.LightBoxDefinition) value);
84                 }
85                 catch (java.lang.Exception JavaDoc ex) {
86                     throw new IllegalStateException JavaDoc(ex.toString());
87                 }
88             }
89             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
90                 return new com.calipso.reportgenerator.reportdefinitions.LightBoxDefinition();
91             }
92         } );
93         desc.setHandler(handler);
94         desc.setMultivalued(true);
95         addFieldDescriptor(desc);
96         
97         //-- validation code for: _lightBoxDefinitionList
98
fieldValidator = new org.exolab.castor.xml.FieldValidator();
99         fieldValidator.setMinOccurs(0);
100         { //-- local scope
101
}
102         desc.setValidator(fieldValidator);
103     } //-- com.calipso.reportgenerator.reportdefinitions.LightBoxerDescriptor()
104

105
106       //-----------/
107
//- Methods -/
108
//-----------/
109

110     /**
111      * Method getAccessMode
112      */

113     public org.exolab.castor.mapping.AccessMode getAccessMode()
114     {
115         return null;
116     } //-- org.exolab.castor.mapping.AccessMode getAccessMode()
117

118     /**
119      * Method getExtends
120      */

121     public org.exolab.castor.mapping.ClassDescriptor getExtends()
122     {
123         return null;
124     } //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
125

126     /**
127      * Method getIdentity
128      */

129     public org.exolab.castor.mapping.FieldDescriptor getIdentity()
130     {
131         return identity;
132     } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
133

134     /**
135      * Method getJavaClass
136      */

137     public java.lang.Class JavaDoc getJavaClass()
138     {
139         return com.calipso.reportgenerator.reportdefinitions.LightBoxer.class;
140     } //-- java.lang.Class getJavaClass()
141

142     /**
143      * Method getNameSpacePrefix
144      */

145     public java.lang.String JavaDoc getNameSpacePrefix()
146     {
147         return nsPrefix;
148     } //-- java.lang.String getNameSpacePrefix()
149

150     /**
151      * Method getNameSpaceURI
152      */

153     public java.lang.String JavaDoc getNameSpaceURI()
154     {
155         return nsURI;
156     } //-- java.lang.String getNameSpaceURI()
157

158     /**
159      * Method getValidator
160      */

161     public org.exolab.castor.xml.TypeValidator getValidator()
162     {
163         return this;
164     } //-- org.exolab.castor.xml.TypeValidator getValidator()
165

166     /**
167      * Method getXMLName
168      */

169     public java.lang.String JavaDoc getXMLName()
170     {
171         return xmlName;
172     } //-- java.lang.String getXMLName()
173

174 }
175
Popular Tags