root / trunk / frameworks / _fwAndami / src / com / iver / andami / config / generate / AndamiConfigDescriptor.java @ 11032
History | View | Annotate | Download (15.9 KB)
1 | 598 | fernando | /*
|
---|---|---|---|
2 | * This class was automatically generated with
|
||
3 | * <a href="http://www.castor.org">Castor 0.9.5.3</a>, using an XML
|
||
4 | * Schema.
|
||
5 | * $Id$
|
||
6 | */
|
||
7 | |||
8 | package com.iver.andami.config.generate; |
||
9 | |||
10 | //---------------------------------/
|
||
11 | //- Imported classes and packages -/
|
||
12 | //---------------------------------/
|
||
13 | |||
14 | 9956 | caballero | 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 | 598 | fernando | |
19 | /**
|
||
20 | * Class AndamiConfigDescriptor.
|
||
21 | *
|
||
22 | * @version $Revision$ $Date$
|
||
23 | */
|
||
24 | public class AndamiConfigDescriptor 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 nsPrefix;
|
||
35 | |||
36 | /**
|
||
37 | * Field nsURI
|
||
38 | */
|
||
39 | private java.lang.String nsURI;
|
||
40 | |||
41 | /**
|
||
42 | * Field xmlName
|
||
43 | */
|
||
44 | private java.lang.String xmlName;
|
||
45 | |||
46 | /**
|
||
47 | * Field identity
|
||
48 | */
|
||
49 | private org.exolab.castor.xml.XMLFieldDescriptor identity;
|
||
50 | |||
51 | |||
52 | //----------------/
|
||
53 | //- Constructors -/
|
||
54 | //----------------/
|
||
55 | |||
56 | public AndamiConfigDescriptor() {
|
||
57 | super();
|
||
58 | xmlName = "andami-config";
|
||
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 | //-- _localeLanguage
|
||
68 | desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_localeLanguage", "locale-language", org.exolab.castor.xml.NodeType.Attribute); |
||
69 | desc.setImmutable(true);
|
||
70 | handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
||
71 | public java.lang.Object getValue( java.lang.Object object )
|
||
72 | throws IllegalStateException |
||
73 | { |
||
74 | AndamiConfig target = (AndamiConfig) object; |
||
75 | return target.getLocaleLanguage();
|
||
76 | } |
||
77 | public void setValue( java.lang.Object object, java.lang.Object value) |
||
78 | throws IllegalStateException, IllegalArgumentException |
||
79 | { |
||
80 | try {
|
||
81 | AndamiConfig target = (AndamiConfig) object; |
||
82 | target.setLocaleLanguage( (java.lang.String) value); |
||
83 | } |
||
84 | catch (java.lang.Exception ex) {
|
||
85 | throw new IllegalStateException(ex.toString()); |
||
86 | } |
||
87 | } |
||
88 | public java.lang.Object newInstance( java.lang.Object parent ) {
|
||
89 | return null; |
||
90 | } |
||
91 | } ); |
||
92 | desc.setHandler(handler); |
||
93 | addFieldDescriptor(desc); |
||
94 | |||
95 | //-- validation code for: _localeLanguage
|
||
96 | fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
||
97 | { //-- local scope
|
||
98 | StringValidator typeValidator = new StringValidator();
|
||
99 | typeValidator.setWhiteSpace("preserve");
|
||
100 | fieldValidator.setValidator(typeValidator); |
||
101 | } |
||
102 | desc.setValidator(fieldValidator); |
||
103 | //-- _localeCountry
|
||
104 | desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_localeCountry", "locale-country", org.exolab.castor.xml.NodeType.Attribute); |
||
105 | desc.setImmutable(true);
|
||
106 | handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
||
107 | public java.lang.Object getValue( java.lang.Object object )
|
||
108 | throws IllegalStateException |
||
109 | { |
||
110 | AndamiConfig target = (AndamiConfig) object; |
||
111 | return target.getLocaleCountry();
|
||
112 | } |
||
113 | public void setValue( java.lang.Object object, java.lang.Object value) |
||
114 | throws IllegalStateException, IllegalArgumentException |
||
115 | { |
||
116 | try {
|
||
117 | AndamiConfig target = (AndamiConfig) object; |
||
118 | target.setLocaleCountry( (java.lang.String) value); |
||
119 | } |
||
120 | catch (java.lang.Exception ex) {
|
||
121 | throw new IllegalStateException(ex.toString()); |
||
122 | } |
||
123 | } |
||
124 | public java.lang.Object newInstance( java.lang.Object parent ) {
|
||
125 | return null; |
||
126 | } |
||
127 | } ); |
||
128 | desc.setHandler(handler); |
||
129 | addFieldDescriptor(desc); |
||
130 | |||
131 | //-- validation code for: _localeCountry
|
||
132 | fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
||
133 | { //-- local scope
|
||
134 | StringValidator typeValidator = new StringValidator();
|
||
135 | typeValidator.setWhiteSpace("preserve");
|
||
136 | fieldValidator.setValidator(typeValidator); |
||
137 | } |
||
138 | desc.setValidator(fieldValidator); |
||
139 | //-- _localeVariant
|
||
140 | desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_localeVariant", "locale-variant", org.exolab.castor.xml.NodeType.Attribute); |
||
141 | desc.setImmutable(true);
|
||
142 | handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
||
143 | public java.lang.Object getValue( java.lang.Object object )
|
||
144 | throws IllegalStateException |
||
145 | { |
||
146 | AndamiConfig target = (AndamiConfig) object; |
||
147 | return target.getLocaleVariant();
|
||
148 | } |
||
149 | public void setValue( java.lang.Object object, java.lang.Object value) |
||
150 | throws IllegalStateException, IllegalArgumentException |
||
151 | { |
||
152 | try {
|
||
153 | AndamiConfig target = (AndamiConfig) object; |
||
154 | target.setLocaleVariant( (java.lang.String) value); |
||
155 | } |
||
156 | catch (java.lang.Exception ex) {
|
||
157 | throw new IllegalStateException(ex.toString()); |
||
158 | } |
||
159 | } |
||
160 | public java.lang.Object newInstance( java.lang.Object parent ) {
|
||
161 | return null; |
||
162 | } |
||
163 | } ); |
||
164 | desc.setHandler(handler); |
||
165 | addFieldDescriptor(desc); |
||
166 | |||
167 | //-- validation code for: _localeVariant
|
||
168 | fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
||
169 | { //-- local scope
|
||
170 | StringValidator typeValidator = new StringValidator();
|
||
171 | typeValidator.setWhiteSpace("preserve");
|
||
172 | fieldValidator.setValidator(typeValidator); |
||
173 | } |
||
174 | desc.setValidator(fieldValidator); |
||
175 | 6101 | jaume | //-- _lookAndFeel
|
176 | desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_lookAndFeel", "lookAndFeel", org.exolab.castor.xml.NodeType.Attribute); |
||
177 | desc.setImmutable(true);
|
||
178 | handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
||
179 | public java.lang.Object getValue( java.lang.Object object )
|
||
180 | throws IllegalStateException |
||
181 | { |
||
182 | AndamiConfig target = (AndamiConfig) object; |
||
183 | return target.getLookAndFeel();
|
||
184 | } |
||
185 | public void setValue( java.lang.Object object, java.lang.Object value) |
||
186 | throws IllegalStateException, IllegalArgumentException |
||
187 | { |
||
188 | try {
|
||
189 | AndamiConfig target = (AndamiConfig) object; |
||
190 | target.setLookAndFeel( (java.lang.String) value); |
||
191 | } |
||
192 | catch (java.lang.Exception ex) {
|
||
193 | throw new IllegalStateException(ex.toString()); |
||
194 | } |
||
195 | } |
||
196 | public java.lang.Object newInstance( java.lang.Object parent ) {
|
||
197 | return null; |
||
198 | } |
||
199 | } ); |
||
200 | desc.setHandler(handler); |
||
201 | addFieldDescriptor(desc); |
||
202 | |||
203 | //-- validation code for: _lookAndFeel
|
||
204 | fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
||
205 | { //-- local scope
|
||
206 | StringValidator typeValidator = new StringValidator();
|
||
207 | typeValidator.setWhiteSpace("preserve");
|
||
208 | fieldValidator.setValidator(typeValidator); |
||
209 | } |
||
210 | desc.setValidator(fieldValidator); |
||
211 | 598 | fernando | //-- _pluginsDirectory
|
212 | desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_pluginsDirectory", "pluginsDirectory", org.exolab.castor.xml.NodeType.Attribute); |
||
213 | desc.setImmutable(true);
|
||
214 | handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
||
215 | public java.lang.Object getValue( java.lang.Object object )
|
||
216 | throws IllegalStateException |
||
217 | { |
||
218 | AndamiConfig target = (AndamiConfig) object; |
||
219 | return target.getPluginsDirectory();
|
||
220 | } |
||
221 | public void setValue( java.lang.Object object, java.lang.Object value) |
||
222 | throws IllegalStateException, IllegalArgumentException |
||
223 | { |
||
224 | try {
|
||
225 | AndamiConfig target = (AndamiConfig) object; |
||
226 | target.setPluginsDirectory( (java.lang.String) value); |
||
227 | } |
||
228 | catch (java.lang.Exception ex) {
|
||
229 | throw new IllegalStateException(ex.toString()); |
||
230 | } |
||
231 | } |
||
232 | public java.lang.Object newInstance( java.lang.Object parent ) {
|
||
233 | return null; |
||
234 | } |
||
235 | } ); |
||
236 | desc.setHandler(handler); |
||
237 | desc.setRequired(true);
|
||
238 | addFieldDescriptor(desc); |
||
239 | |||
240 | //-- validation code for: _pluginsDirectory
|
||
241 | fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
||
242 | fieldValidator.setMinOccurs(1);
|
||
243 | { //-- local scope
|
||
244 | StringValidator typeValidator = new StringValidator();
|
||
245 | typeValidator.setWhiteSpace("preserve");
|
||
246 | fieldValidator.setValidator(typeValidator); |
||
247 | } |
||
248 | desc.setValidator(fieldValidator); |
||
249 | //-- initialize element descriptors
|
||
250 | |||
251 | //-- _andami
|
||
252 | desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.config.generate.Andami.class, "_andami", "andami", org.exolab.castor.xml.NodeType.Element); |
||
253 | handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
||
254 | public java.lang.Object getValue( java.lang.Object object )
|
||
255 | throws IllegalStateException |
||
256 | { |
||
257 | AndamiConfig target = (AndamiConfig) object; |
||
258 | return target.getAndami();
|
||
259 | } |
||
260 | public void setValue( java.lang.Object object, java.lang.Object value) |
||
261 | throws IllegalStateException, IllegalArgumentException |
||
262 | { |
||
263 | try {
|
||
264 | AndamiConfig target = (AndamiConfig) object; |
||
265 | target.setAndami( (com.iver.andami.config.generate.Andami) value); |
||
266 | } |
||
267 | catch (java.lang.Exception ex) {
|
||
268 | throw new IllegalStateException(ex.toString()); |
||
269 | } |
||
270 | } |
||
271 | public java.lang.Object newInstance( java.lang.Object parent ) {
|
||
272 | return new com.iver.andami.config.generate.Andami(); |
||
273 | } |
||
274 | } ); |
||
275 | desc.setHandler(handler); |
||
276 | desc.setRequired(true);
|
||
277 | desc.setMultivalued(false);
|
||
278 | addFieldDescriptor(desc); |
||
279 | |||
280 | //-- validation code for: _andami
|
||
281 | fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
||
282 | fieldValidator.setMinOccurs(1);
|
||
283 | { //-- local scope
|
||
284 | } |
||
285 | desc.setValidator(fieldValidator); |
||
286 | //-- _pluginList
|
||
287 | desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.config.generate.Plugin.class, "_pluginList", "plugin", org.exolab.castor.xml.NodeType.Element); |
||
288 | handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
||
289 | public java.lang.Object getValue( java.lang.Object object )
|
||
290 | throws IllegalStateException |
||
291 | { |
||
292 | AndamiConfig target = (AndamiConfig) object; |
||
293 | return target.getPlugin();
|
||
294 | } |
||
295 | public void setValue( java.lang.Object object, java.lang.Object value) |
||
296 | throws IllegalStateException, IllegalArgumentException |
||
297 | { |
||
298 | try {
|
||
299 | AndamiConfig target = (AndamiConfig) object; |
||
300 | target.addPlugin( (com.iver.andami.config.generate.Plugin) value); |
||
301 | } |
||
302 | catch (java.lang.Exception ex) {
|
||
303 | throw new IllegalStateException(ex.toString()); |
||
304 | } |
||
305 | } |
||
306 | public java.lang.Object newInstance( java.lang.Object parent ) {
|
||
307 | return new com.iver.andami.config.generate.Plugin(); |
||
308 | } |
||
309 | } ); |
||
310 | desc.setHandler(handler); |
||
311 | desc.setRequired(true);
|
||
312 | desc.setMultivalued(true);
|
||
313 | addFieldDescriptor(desc); |
||
314 | |||
315 | //-- validation code for: _pluginList
|
||
316 | fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
||
317 | fieldValidator.setMinOccurs(1);
|
||
318 | { //-- local scope
|
||
319 | } |
||
320 | desc.setValidator(fieldValidator); |
||
321 | 11032 | cesar | //-- _andamiOptions
|
322 | desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.config.generate.AndamiOptions.class, "_andamiOptions", "andami-options", org.exolab.castor.xml.NodeType.Element); |
||
323 | handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
||
324 | public java.lang.Object getValue( java.lang.Object object )
|
||
325 | throws IllegalStateException |
||
326 | { |
||
327 | AndamiConfig target = (AndamiConfig) object; |
||
328 | return target.getAndamiOptions();
|
||
329 | } |
||
330 | public void setValue( java.lang.Object object, java.lang.Object value) |
||
331 | throws IllegalStateException, IllegalArgumentException |
||
332 | { |
||
333 | try {
|
||
334 | AndamiConfig target = (AndamiConfig) object; |
||
335 | target.setAndamiOptions( (com.iver.andami.config.generate.AndamiOptions) value); |
||
336 | } |
||
337 | catch (java.lang.Exception ex) {
|
||
338 | throw new IllegalStateException(ex.toString()); |
||
339 | } |
||
340 | } |
||
341 | public java.lang.Object newInstance( java.lang.Object parent ) {
|
||
342 | return new com.iver.andami.config.generate.AndamiOptions(); |
||
343 | } |
||
344 | } ); |
||
345 | desc.setHandler(handler); |
||
346 | desc.setMultivalued(false);
|
||
347 | addFieldDescriptor(desc); |
||
348 | |||
349 | //-- validation code for: _andamiOptions
|
||
350 | fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
||
351 | { //-- local scope
|
||
352 | } |
||
353 | desc.setValidator(fieldValidator); |
||
354 | 598 | fernando | } //-- com.iver.andami.config.generate.AndamiConfigDescriptor()
|
355 | |||
356 | |||
357 | //-----------/
|
||
358 | //- Methods -/
|
||
359 | //-----------/
|
||
360 | |||
361 | /**
|
||
362 | * Method getAccessMode
|
||
363 | */
|
||
364 | public org.exolab.castor.mapping.AccessMode getAccessMode()
|
||
365 | { |
||
366 | return null; |
||
367 | } //-- org.exolab.castor.mapping.AccessMode getAccessMode()
|
||
368 | |||
369 | /**
|
||
370 | * Method getExtends
|
||
371 | */
|
||
372 | public org.exolab.castor.mapping.ClassDescriptor getExtends()
|
||
373 | { |
||
374 | return null; |
||
375 | } //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
|
||
376 | |||
377 | /**
|
||
378 | * Method getIdentity
|
||
379 | */
|
||
380 | public org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
||
381 | { |
||
382 | return identity;
|
||
383 | } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
||
384 | |||
385 | /**
|
||
386 | * Method getJavaClass
|
||
387 | */
|
||
388 | public java.lang.Class getJavaClass()
|
||
389 | { |
||
390 | return com.iver.andami.config.generate.AndamiConfig.class;
|
||
391 | } //-- java.lang.Class getJavaClass()
|
||
392 | |||
393 | /**
|
||
394 | * Method getNameSpacePrefix
|
||
395 | */
|
||
396 | public java.lang.String getNameSpacePrefix()
|
||
397 | { |
||
398 | return nsPrefix;
|
||
399 | } //-- java.lang.String getNameSpacePrefix()
|
||
400 | |||
401 | /**
|
||
402 | * Method getNameSpaceURI
|
||
403 | */
|
||
404 | public java.lang.String getNameSpaceURI()
|
||
405 | { |
||
406 | return nsURI;
|
||
407 | } //-- java.lang.String getNameSpaceURI()
|
||
408 | |||
409 | /**
|
||
410 | * Method getValidator
|
||
411 | */
|
||
412 | public org.exolab.castor.xml.TypeValidator getValidator()
|
||
413 | { |
||
414 | return this; |
||
415 | } //-- org.exolab.castor.xml.TypeValidator getValidator()
|
||
416 | |||
417 | /**
|
||
418 | * Method getXMLName
|
||
419 | */
|
||
420 | public java.lang.String getXMLName()
|
||
421 | { |
||
422 | return xmlName;
|
||
423 | } //-- java.lang.String getXMLName()
|
||
424 | |||
425 | } |