KickJava   Java API By Example, From Geeks To Geeks.

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


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

24 public class ParameterBindDescriptor 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 ParameterBindDescriptor() {
57         super();
58         xmlName = "ParameterBind";
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         //-- _sourceFilterName
65
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_sourceFilterName", "SourceFilterName", 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                 ParameterBind target = (ParameterBind) object;
72                 return target.getSourceFilterName();
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                     ParameterBind target = (ParameterBind) object;
79                     target.setSourceFilterName( (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: _sourceFilterName
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         //-- _sourceParameterName
103
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_sourceParameterName", "SourceParameterName", 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                 ParameterBind target = (ParameterBind) object;
110                 return target.getSourceParameterName();
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                     ParameterBind target = (ParameterBind) object;
117                     target.setSourceParameterName( (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: _sourceParameterName
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         //-- _targetFilterName
141
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_targetFilterName", "TargetFilterName", 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                 ParameterBind target = (ParameterBind) object;
148                 return target.getTargetFilterName();
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                     ParameterBind target = (ParameterBind) object;
155                     target.setTargetFilterName( (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         desc.setRequired(true);
167         addFieldDescriptor(desc);
168         
169         //-- validation code for: _targetFilterName
170
fieldValidator = new org.exolab.castor.xml.FieldValidator();
171         fieldValidator.setMinOccurs(1);
172         { //-- local scope
173
StringValidator typeValidator = new StringValidator();
174             typeValidator.setWhiteSpace("preserve");
175             fieldValidator.setValidator(typeValidator);
176         }
177         desc.setValidator(fieldValidator);
178         //-- _targetParameterName
179
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String JavaDoc.class, "_targetParameterName", "TargetParameterName", org.exolab.castor.xml.NodeType.Attribute);
180         desc.setImmutable(true);
181         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
182             public java.lang.Object JavaDoc getValue( java.lang.Object JavaDoc object )
183                 throws IllegalStateException JavaDoc
184             {
185                 ParameterBind target = (ParameterBind) object;
186                 return target.getTargetParameterName();
187             }
188             public void setValue( java.lang.Object JavaDoc object, java.lang.Object JavaDoc value)
189                 throws IllegalStateException JavaDoc, IllegalArgumentException JavaDoc
190             {
191                 try {
192                     ParameterBind target = (ParameterBind) object;
193                     target.setTargetParameterName( (java.lang.String JavaDoc) value);
194                 }
195                 catch (java.lang.Exception JavaDoc ex) {
196                     throw new IllegalStateException JavaDoc(ex.toString());
197                 }
198             }
199             public java.lang.Object JavaDoc newInstance( java.lang.Object JavaDoc parent ) {
200                 return null;
201             }
202         } );
203         desc.setHandler(handler);
204         desc.setRequired(true);
205         addFieldDescriptor(desc);
206         
207         //-- validation code for: _targetParameterName
208
fieldValidator = new org.exolab.castor.xml.FieldValidator();
209         fieldValidator.setMinOccurs(1);
210         { //-- local scope
211
StringValidator typeValidator = new StringValidator();
212             typeValidator.setWhiteSpace("preserve");
213             fieldValidator.setValidator(typeValidator);
214         }
215         desc.setValidator(fieldValidator);
216         //-- initialize element descriptors
217

218     } //-- com.calipso.reportgenerator.reportdefinitions.ParameterBindDescriptor()
219

220
221       //-----------/
222
//- Methods -/
223
//-----------/
224

225     /**
226      * Method getAccessMode
227      */

228     public org.exolab.castor.mapping.AccessMode getAccessMode()
229     {
230         return null;
231     } //-- org.exolab.castor.mapping.AccessMode getAccessMode()
232

233     /**
234      * Method getExtends
235      */

236     public org.exolab.castor.mapping.ClassDescriptor getExtends()
237     {
238         return null;
239     } //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
240

241     /**
242      * Method getIdentity
243      */

244     public org.exolab.castor.mapping.FieldDescriptor getIdentity()
245     {
246         return identity;
247     } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
248

249     /**
250      * Method getJavaClass
251      */

252     public java.lang.Class JavaDoc getJavaClass()
253     {
254         return com.calipso.reportgenerator.reportdefinitions.ParameterBind.class;
255     } //-- java.lang.Class getJavaClass()
256

257     /**
258      * Method getNameSpacePrefix
259      */

260     public java.lang.String JavaDoc getNameSpacePrefix()
261     {
262         return nsPrefix;
263     } //-- java.lang.String getNameSpacePrefix()
264

265     /**
266      * Method getNameSpaceURI
267      */

268     public java.lang.String JavaDoc getNameSpaceURI()
269     {
270         return nsURI;
271     } //-- java.lang.String getNameSpaceURI()
272

273     /**
274      * Method getValidator
275      */

276     public org.exolab.castor.xml.TypeValidator getValidator()
277     {
278         return this;
279     } //-- org.exolab.castor.xml.TypeValidator getValidator()
280

281     /**
282      * Method getXMLName
283      */

284     public java.lang.String JavaDoc getXMLName()
285     {
286         return xmlName;
287     } //-- java.lang.String getXMLName()
288

289 }
290
Popular Tags