root / trunk / frameworks / _fwAndami / src / com / iver / andami / plugins / config / generate / ComboScaleDescriptor.java @ 9956
History | View | Annotate | Download (12.2 KB)
1 |
/*
|
---|---|
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: ComboScaleDescriptor.java 9956 2007-01-29 11:50:30Z caballero $
|
6 |
*/
|
7 |
|
8 |
package com.iver.andami.plugins.config.generate; |
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 ComboScaleDescriptor.
|
21 |
*
|
22 |
* @version $Revision: 9956 $ $Date: 2007-01-29 12:50:30 +0100 (Mon, 29 Jan 2007) $
|
23 |
*/
|
24 |
public class ComboScaleDescriptor 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 ComboScaleDescriptor() {
|
57 |
super();
|
58 |
xmlName = "combo-scale";
|
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.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 getValue( java.lang.Object object )
|
69 |
throws IllegalStateException |
70 |
{ |
71 |
ComboScale target = (ComboScale) object; |
72 |
return target.getName();
|
73 |
} |
74 |
public void setValue( java.lang.Object object, java.lang.Object value) |
75 |
throws IllegalStateException, IllegalArgumentException |
76 |
{ |
77 |
try {
|
78 |
ComboScale target = (ComboScale) object; |
79 |
target.setName( (java.lang.String) value); |
80 |
} |
81 |
catch (java.lang.Exception ex) {
|
82 |
throw new IllegalStateException(ex.toString()); |
83 |
} |
84 |
} |
85 |
public java.lang.Object newInstance( java.lang.Object 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 |
//-- _label
|
103 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_label", "label", org.exolab.castor.xml.NodeType.Attribute); |
104 |
desc.setImmutable(true);
|
105 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
106 |
public java.lang.Object getValue( java.lang.Object object )
|
107 |
throws IllegalStateException |
108 |
{ |
109 |
ComboScale target = (ComboScale) object; |
110 |
return target.getLabel();
|
111 |
} |
112 |
public void setValue( java.lang.Object object, java.lang.Object value) |
113 |
throws IllegalStateException, IllegalArgumentException |
114 |
{ |
115 |
try {
|
116 |
ComboScale target = (ComboScale) object; |
117 |
target.setLabel( (java.lang.String) value); |
118 |
} |
119 |
catch (java.lang.Exception ex) {
|
120 |
throw new IllegalStateException(ex.toString()); |
121 |
} |
122 |
} |
123 |
public java.lang.Object newInstance( java.lang.Object parent ) {
|
124 |
return null; |
125 |
} |
126 |
} ); |
127 |
desc.setHandler(handler); |
128 |
addFieldDescriptor(desc); |
129 |
|
130 |
//-- validation code for: _label
|
131 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
132 |
{ //-- local scope
|
133 |
StringValidator typeValidator = new StringValidator();
|
134 |
typeValidator.setWhiteSpace("preserve");
|
135 |
fieldValidator.setValidator(typeValidator); |
136 |
} |
137 |
desc.setValidator(fieldValidator); |
138 |
//-- _elements
|
139 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Object.class, "_elements", "elements", org.exolab.castor.xml.NodeType.Attribute); |
140 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
141 |
public java.lang.Object getValue( java.lang.Object object )
|
142 |
throws IllegalStateException |
143 |
{ |
144 |
ComboScale target = (ComboScale) object; |
145 |
return target.getElements();
|
146 |
} |
147 |
public void setValue( java.lang.Object object, java.lang.Object value) |
148 |
throws IllegalStateException, IllegalArgumentException |
149 |
{ |
150 |
try {
|
151 |
ComboScale target = (ComboScale) object; |
152 |
target.setElements( (java.lang.Object) value); |
153 |
} |
154 |
catch (java.lang.Exception ex) {
|
155 |
throw new IllegalStateException(ex.toString()); |
156 |
} |
157 |
} |
158 |
public java.lang.Object newInstance( java.lang.Object parent ) {
|
159 |
return new java.lang.Object(); |
160 |
} |
161 |
} ); |
162 |
desc.setHandler(handler); |
163 |
desc.setRequired(true);
|
164 |
addFieldDescriptor(desc); |
165 |
|
166 |
//-- validation code for: _elements
|
167 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
168 |
fieldValidator.setMinOccurs(1);
|
169 |
{ //-- local scope
|
170 |
} |
171 |
desc.setValidator(fieldValidator); |
172 |
//-- _value
|
173 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Object.class, "_value", "value", org.exolab.castor.xml.NodeType.Attribute); |
174 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
175 |
public java.lang.Object getValue( java.lang.Object object )
|
176 |
throws IllegalStateException |
177 |
{ |
178 |
ComboScale target = (ComboScale) object; |
179 |
return target.getValue();
|
180 |
} |
181 |
public void setValue( java.lang.Object object, java.lang.Object value) |
182 |
throws IllegalStateException, IllegalArgumentException |
183 |
{ |
184 |
try {
|
185 |
ComboScale target = (ComboScale) object; |
186 |
target.setValue( (java.lang.Object) value); |
187 |
} |
188 |
catch (java.lang.Exception ex) {
|
189 |
throw new IllegalStateException(ex.toString()); |
190 |
} |
191 |
} |
192 |
public java.lang.Object newInstance( java.lang.Object parent ) {
|
193 |
return new java.lang.Object(); |
194 |
} |
195 |
} ); |
196 |
desc.setHandler(handler); |
197 |
addFieldDescriptor(desc); |
198 |
|
199 |
//-- validation code for: _value
|
200 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
201 |
{ //-- local scope
|
202 |
} |
203 |
desc.setValidator(fieldValidator); |
204 |
//-- _actionCommand
|
205 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_actionCommand", "action-command", org.exolab.castor.xml.NodeType.Attribute); |
206 |
desc.setImmutable(true);
|
207 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
208 |
public java.lang.Object getValue( java.lang.Object object )
|
209 |
throws IllegalStateException |
210 |
{ |
211 |
ComboScale target = (ComboScale) object; |
212 |
return target.getActionCommand();
|
213 |
} |
214 |
public void setValue( java.lang.Object object, java.lang.Object value) |
215 |
throws IllegalStateException, IllegalArgumentException |
216 |
{ |
217 |
try {
|
218 |
ComboScale target = (ComboScale) object; |
219 |
target.setActionCommand( (java.lang.String) value); |
220 |
} |
221 |
catch (java.lang.Exception ex) {
|
222 |
throw new IllegalStateException(ex.toString()); |
223 |
} |
224 |
} |
225 |
public java.lang.Object newInstance( java.lang.Object parent ) {
|
226 |
return null; |
227 |
} |
228 |
} ); |
229 |
desc.setHandler(handler); |
230 |
desc.setRequired(true);
|
231 |
addFieldDescriptor(desc); |
232 |
|
233 |
//-- validation code for: _actionCommand
|
234 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
235 |
fieldValidator.setMinOccurs(1);
|
236 |
{ //-- local scope
|
237 |
StringValidator typeValidator = new StringValidator();
|
238 |
typeValidator.setWhiteSpace("preserve");
|
239 |
fieldValidator.setValidator(typeValidator); |
240 |
} |
241 |
desc.setValidator(fieldValidator); |
242 |
//-- _position
|
243 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Object.class, "_position", "position", org.exolab.castor.xml.NodeType.Attribute); |
244 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
245 |
public java.lang.Object getValue( java.lang.Object object )
|
246 |
throws IllegalStateException |
247 |
{ |
248 |
ComboScale target = (ComboScale) object; |
249 |
return target.getPosition();
|
250 |
} |
251 |
public void setValue( java.lang.Object object, java.lang.Object value) |
252 |
throws IllegalStateException, IllegalArgumentException |
253 |
{ |
254 |
try {
|
255 |
ComboScale target = (ComboScale) object; |
256 |
target.setPosition( (java.lang.Object) value); |
257 |
} |
258 |
catch (java.lang.Exception ex) {
|
259 |
throw new IllegalStateException(ex.toString()); |
260 |
} |
261 |
} |
262 |
public java.lang.Object newInstance( java.lang.Object parent ) {
|
263 |
return new java.lang.Object(); |
264 |
} |
265 |
} ); |
266 |
desc.setHandler(handler); |
267 |
addFieldDescriptor(desc); |
268 |
|
269 |
//-- validation code for: _position
|
270 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
271 |
{ //-- local scope
|
272 |
} |
273 |
desc.setValidator(fieldValidator); |
274 |
//-- initialize element descriptors
|
275 |
|
276 |
} //-- com.iver.andami.plugins.config.generate.ComboScaleDescriptor()
|
277 |
|
278 |
|
279 |
//-----------/
|
280 |
//- Methods -/
|
281 |
//-----------/
|
282 |
|
283 |
/**
|
284 |
* Method getAccessMode
|
285 |
*/
|
286 |
public org.exolab.castor.mapping.AccessMode getAccessMode()
|
287 |
{ |
288 |
return null; |
289 |
} //-- org.exolab.castor.mapping.AccessMode getAccessMode()
|
290 |
|
291 |
/**
|
292 |
* Method getExtends
|
293 |
*/
|
294 |
public org.exolab.castor.mapping.ClassDescriptor getExtends()
|
295 |
{ |
296 |
return null; |
297 |
} //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
|
298 |
|
299 |
/**
|
300 |
* Method getIdentity
|
301 |
*/
|
302 |
public org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
303 |
{ |
304 |
return identity;
|
305 |
} //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
306 |
|
307 |
/**
|
308 |
* Method getJavaClass
|
309 |
*/
|
310 |
public java.lang.Class getJavaClass()
|
311 |
{ |
312 |
return com.iver.andami.plugins.config.generate.ComboScale.class;
|
313 |
} //-- java.lang.Class getJavaClass()
|
314 |
|
315 |
/**
|
316 |
* Method getNameSpacePrefix
|
317 |
*/
|
318 |
public java.lang.String getNameSpacePrefix()
|
319 |
{ |
320 |
return nsPrefix;
|
321 |
} //-- java.lang.String getNameSpacePrefix()
|
322 |
|
323 |
/**
|
324 |
* Method getNameSpaceURI
|
325 |
*/
|
326 |
public java.lang.String getNameSpaceURI()
|
327 |
{ |
328 |
return nsURI;
|
329 |
} //-- java.lang.String getNameSpaceURI()
|
330 |
|
331 |
/**
|
332 |
* Method getValidator
|
333 |
*/
|
334 |
public org.exolab.castor.xml.TypeValidator getValidator()
|
335 |
{ |
336 |
return this; |
337 |
} //-- org.exolab.castor.xml.TypeValidator getValidator()
|
338 |
|
339 |
/**
|
340 |
* Method getXMLName
|
341 |
*/
|
342 |
public java.lang.String getXMLName()
|
343 |
{ |
344 |
return xmlName;
|
345 |
} //-- java.lang.String getXMLName()
|
346 |
|
347 |
} |