KickJava   Java API By Example, From Geeks To Geeks.

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


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 ActionDefinitionDescriptor.
21  *
22  * @version $Revision$ $Date$
23  */

24 public class ActionDefinitionDescriptor 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 ActionDefinitionDescriptor() {
57         super();
58         xmlName = "ActionDefinition";
59         org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
60         org.exolab.castor.xml.XMLFieldHandler handler = null;
61         org.exolab.castor.xml.FieldValidator fieldValidator = null;
62         //-- initialize attribute descriptors
63

64         //-- _name
65
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_name", "Name", org.exolab.castor.xml.NodeType.Attribute);
66         desc.setImmutable(true);
67         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
68             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
69                 throws IllegalStateException JavaDoc
70             {
71                 ActionDefinition target = (ActionDefinition) object;
72                 return target.getName();
73             }
74             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
75                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
76             {
77                 try {
78                     ActionDefinition target = (ActionDefinition) object;
79                     target.setName( (java.lang.String JavaDoc) value);
80                 }
81                 catch (java.lang.Exception JavaDoc ex) {
82                     throw new IllegalStateException JavaDoc(ex.toString());
83                 }
84             }
85             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
86                 return null;
87             }
88         } );
89         desc.setHandler(handler);
90         desc.setRequired(true);
91         addFieldDescriptor(desc);
92         
93         //-- validation code for: _name
94
fieldValidator = new org.exolab.castor.xml.FieldValidator();
95         fieldValidator.setMinOccurs(1);
96         { //-- local scope
97
StringValidator typeValidator = new StringValidator();
98             typeValidator.setWhiteSpace("preserve");
99             fieldValidator.setValidator(typeValidator);
100         }
101         desc.setValidator(fieldValidator);
102         //-- _description
103
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_description", "Description", org.exolab.castor.xml.NodeType.Attribute);
104         desc.setImmutable(true);
105         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
106             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
107                 throws IllegalStateException JavaDoc
108             {
109                 ActionDefinition target = (ActionDefinition) object;
110                 return target.getDescription();
111             }
112             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
113                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
114             {
115                 try {
116                     ActionDefinition target = (ActionDefinition) object;
117                     target.setDescription( (java.lang.String JavaDoc) value);
118                 }
119                 catch (java.lang.Exception JavaDoc ex) {
120                     throw new IllegalStateException JavaDoc(ex.toString());
121                 }
122             }
123             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
124                 return null;
125             }
126         } );
127         desc.setHandler(handler);
128         desc.setRequired(true);
129         addFieldDescriptor(desc);
130         
131         //-- validation code for: _description
132
fieldValidator = new org.exolab.castor.xml.FieldValidator();
133         fieldValidator.setMinOccurs(1);
134         { //-- local scope
135
StringValidator typeValidator = new StringValidator();
136             typeValidator.setWhiteSpace("preserve");
137             fieldValidator.setValidator(typeValidator);
138         }
139         desc.setValidator(fieldValidator);
140         //-- _expression
141
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_expression", "Expression", org.exolab.castor.xml.NodeType.Attribute);
142         desc.setImmutable(true);
143         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
144             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
145                 throws IllegalStateException JavaDoc
146             {
147                 ActionDefinition target = (ActionDefinition) object;
148                 return target.getExpression();
149             }
150             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
151                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
152             {
153                 try {
154                     ActionDefinition target = (ActionDefinition) object;
155                     target.setExpression( (java.lang.String JavaDoc) value);
156                 }
157                 catch (java.lang.Exception JavaDoc ex) {
158                     throw new IllegalStateException JavaDoc(ex.toString());
159                 }
160             }
161             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
162                 return null;
163             }
164         } );
165         desc.setHandler(handler);
166         addFieldDescriptor(desc);
167         
168         //-- validation code for: _expression
169
fieldValidator = new org.exolab.castor.xml.FieldValidator();
170         { //-- local scope
171
StringValidator typeValidator = new StringValidator();
172             typeValidator.setWhiteSpace("preserve");
173             fieldValidator.setValidator(typeValidator);
174         }
175         desc.setValidator(fieldValidator);
176         //-- _metric
177
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_metric", "Metric", org.exolab.castor.xml.NodeType.Attribute);
178         desc.setImmutable(true);
179         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
180             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
181                 throws IllegalStateException JavaDoc
182             {
183                 ActionDefinition target = (ActionDefinition) object;
184                 return target.getMetric();
185             }
186             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
187                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
188             {
189                 try {
190                     ActionDefinition target = (ActionDefinition) object;
191                     target.setMetric( (java.lang.String JavaDoc) value);
192                 }
193                 catch (java.lang.Exception JavaDoc ex) {
194                     throw new IllegalStateException JavaDoc(ex.toString());
195                 }
196             }
197             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
198                 return null;
199             }
200         } );
201         desc.setHandler(handler);
202         addFieldDescriptor(desc);
203         
204         //-- validation code for: _metric
205
fieldValidator = new org.exolab.castor.xml.FieldValidator();
206         { //-- local scope
207
StringValidator typeValidator = new StringValidator();
208             typeValidator.setWhiteSpace("preserve");
209             fieldValidator.setValidator(typeValidator);
210         }
211         desc.setValidator(fieldValidator);
212         //-- initialize element descriptors
213

214     } //-- com.calipso.reportgenerator.reportdefinitions.ActionDefinitionDescriptor()
215

216
217       //-----------/
218
//- Methods -/
219
//-----------/
220

221     /**
222      * Method getAccessMode
223      */

224     public org.exolab.castor.mapping.AccessMode getAccessMode()
225     {
226         return null;
227     } //-- org.exolab.castor.mapping.AccessMode getAccessMode()
228

229     /**
230      * Method getExtends
231      */

232     public org.exolab.castor.mapping.ClassDescriptor getExtends()
233     {
234         return null;
235     } //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
236

237     /**
238      * Method getIdentity
239      */

240     public org.exolab.castor.mapping.FieldDescriptor getIdentity()
241     {
242         return identity;
243     } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
244

245     /**
246      * Method getJavaClass
247      */

248     public java.lang.Class JavaDoc getJavaClass()
249     {
250         return com.calipso.reportgenerator.reportdefinitions.ActionDefinition.class;
251     } //-- java.lang.Class getJavaClass()
252

253     /**
254      * Method getNameSpacePrefix
255      */

256     public java.lang.String JavaDoc getNameSpacePrefix()
257     {
258         return nsPrefix;
259     } //-- java.lang.String getNameSpacePrefix()
260

261     /**
262      * Method getNameSpaceURI
263      */

264     public java.lang.String JavaDoc getNameSpaceURI()
265     {
266         return nsURI;
267     } //-- java.lang.String getNameSpaceURI()
268

269     /**
270      * Method getValidator
271      */

272     public org.exolab.castor.xml.TypeValidator getValidator()
273     {
274         return this;
275     } //-- org.exolab.castor.xml.TypeValidator getValidator()
276

277     /**
278      * Method getXMLName
279      */

280     public java.lang.String JavaDoc getXMLName()
281     {
282         return xmlName;
283     } //-- java.lang.String getXMLName()
284

285 }
286
Popular Tags