KickJava   Java API By Example, From Geeks To Geeks.

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


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

24 public class ParameterValueDescriptor 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 ParameterValueDescriptor() {
57         super();
58         xmlName = "ParameterValue";
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         //-- _filterDefinitionName
65
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_filterDefinitionName", "FilterDefinitionName", 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                 ParameterValue target = (ParameterValue) object;
72                 return target.getFilterDefinitionName();
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                     ParameterValue target = (ParameterValue) object;
79                     target.setFilterDefinitionName( (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: _filterDefinitionName
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         //-- _filterParameter
103
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.types.ParameterValueFilterParameterType.class, "_filterParameter", "FilterParameter", org.exolab.castor.xml.NodeType.Attribute);
104         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
105             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
106                 throws IllegalStateException JavaDoc
107             {
108                 ParameterValue target = (ParameterValue) object;
109                 return target.getFilterParameter();
110             }
111             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
112                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
113             {
114                 try {
115                     ParameterValue target = (ParameterValue) object;
116                     target.setFilterParameter( (com.calipso.reportgenerator.reportdefinitions.types.ParameterValueFilterParameterType) value);
117                 }
118                 catch (java.lang.Exception JavaDoc ex) {
119                     throw new IllegalStateException JavaDoc(ex.toString());
120                 }
121             }
122             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
123                 return null;
124             }
125         } );
126         desc.setHandler( new org.exolab.castor.xml.handlers.EnumFieldHandler(com.calipso.reportgenerator.reportdefinitions.types.ParameterValueFilterParameterType.class, handler));
127         desc.setImmutable(true);
128         desc.setRequired(true);
129         addFieldDescriptor(desc);
130         
131         //-- validation code for: _filterParameter
132
fieldValidator = new org.exolab.castor.xml.FieldValidator();
133         fieldValidator.setMinOccurs(1);
134         { //-- local scope
135
}
136         desc.setValidator(fieldValidator);
137         //-- _defaultValue
138
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_defaultValue", "DefaultValue", org.exolab.castor.xml.NodeType.Attribute);
139         desc.setImmutable(true);
140         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
141             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
142                 throws IllegalStateException JavaDoc
143             {
144                 ParameterValue target = (ParameterValue) object;
145                 return target.getDefaultValue();
146             }
147             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
148                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
149             {
150                 try {
151                     ParameterValue target = (ParameterValue) object;
152                     target.setDefaultValue( (java.lang.String JavaDoc) value);
153                 }
154                 catch (java.lang.Exception JavaDoc ex) {
155                     throw new IllegalStateException JavaDoc(ex.toString());
156                 }
157             }
158             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
159                 return null;
160             }
161         } );
162         desc.setHandler(handler);
163         addFieldDescriptor(desc);
164         
165         //-- validation code for: _defaultValue
166
fieldValidator = new org.exolab.castor.xml.FieldValidator();
167         { //-- local scope
168
StringValidator typeValidator = new StringValidator();
169             typeValidator.setWhiteSpace("preserve");
170             fieldValidator.setValidator(typeValidator);
171         }
172         desc.setValidator(fieldValidator);
173         //-- initialize element descriptors
174

175     } //-- com.calipso.reportgenerator.reportdefinitions.ParameterValueDescriptor()
176

177
178       //-----------/
179
//- Methods -/
180
//-----------/
181

182     /**
183      * Method getAccessMode
184      */

185     public org.exolab.castor.mapping.AccessMode getAccessMode()
186     {
187         return null;
188     } //-- org.exolab.castor.mapping.AccessMode getAccessMode()
189

190     /**
191      * Method getExtends
192      */

193     public org.exolab.castor.mapping.ClassDescriptor getExtends()
194     {
195         return null;
196     } //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
197

198     /**
199      * Method getIdentity
200      */

201     public org.exolab.castor.mapping.FieldDescriptor getIdentity()
202     {
203         return identity;
204     } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
205

206     /**
207      * Method getJavaClass
208      */

209     public java.lang.Class JavaDoc getJavaClass()
210     {
211         return com.calipso.reportgenerator.reportdefinitions.ParameterValue.class;
212     } //-- java.lang.Class getJavaClass()
213

214     /**
215      * Method getNameSpacePrefix
216      */

217     public java.lang.String JavaDoc getNameSpacePrefix()
218     {
219         return nsPrefix;
220     } //-- java.lang.String getNameSpacePrefix()
221

222     /**
223      * Method getNameSpaceURI
224      */

225     public java.lang.String JavaDoc getNameSpaceURI()
226     {
227         return nsURI;
228     } //-- java.lang.String getNameSpaceURI()
229

230     /**
231      * Method getValidator
232      */

233     public org.exolab.castor.xml.TypeValidator getValidator()
234     {
235         return this;
236     } //-- org.exolab.castor.xml.TypeValidator getValidator()
237

238     /**
239      * Method getXMLName
240      */

241     public java.lang.String JavaDoc getXMLName()
242     {
243         return xmlName;
244     } //-- java.lang.String getXMLName()
245

246 }
247
Popular Tags