svn-gvsig-desktop / trunk / frameworks / _fwAndami / src / com / iver / andami / plugins / config / generate / PluginConfigDescriptor.java @ 598
History | View | Annotate | Download (15.7 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: PluginConfigDescriptor.java 598 2004-12-22 10:11:38Z fernando $
|
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 PluginConfigDescriptor.
|
21 |
*
|
22 |
* @version $Revision: 598 $ $Date: 2004-12-22 11:11:38 +0100 (Wed, 22 Dec 2004) $
|
23 |
*/
|
24 |
public class PluginConfigDescriptor 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 PluginConfigDescriptor() {
|
57 |
super();
|
58 |
xmlName = "plugin-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 |
//-- _updateUrl
|
68 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_updateUrl", "update-url", 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 |
PluginConfig target = (PluginConfig) object; |
75 |
return target.getUpdateUrl();
|
76 |
} |
77 |
public void setValue( java.lang.Object object, java.lang.Object value) |
78 |
throws IllegalStateException, IllegalArgumentException |
79 |
{ |
80 |
try {
|
81 |
PluginConfig target = (PluginConfig) object; |
82 |
target.setUpdateUrl( (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: _updateUrl
|
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 |
//-- initialize element descriptors
|
104 |
|
105 |
//-- _icon
|
106 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.plugins.config.generate.Icon.class, "_icon", "icon", org.exolab.castor.xml.NodeType.Element); |
107 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
108 |
public java.lang.Object getValue( java.lang.Object object )
|
109 |
throws IllegalStateException |
110 |
{ |
111 |
PluginConfig target = (PluginConfig) object; |
112 |
return target.getIcon();
|
113 |
} |
114 |
public void setValue( java.lang.Object object, java.lang.Object value) |
115 |
throws IllegalStateException, IllegalArgumentException |
116 |
{ |
117 |
try {
|
118 |
PluginConfig target = (PluginConfig) object; |
119 |
target.setIcon( (com.iver.andami.plugins.config.generate.Icon) value); |
120 |
} |
121 |
catch (java.lang.Exception ex) {
|
122 |
throw new IllegalStateException(ex.toString()); |
123 |
} |
124 |
} |
125 |
public java.lang.Object newInstance( java.lang.Object parent ) {
|
126 |
return new com.iver.andami.plugins.config.generate.Icon(); |
127 |
} |
128 |
} ); |
129 |
desc.setHandler(handler); |
130 |
desc.setMultivalued(false);
|
131 |
addFieldDescriptor(desc); |
132 |
|
133 |
//-- validation code for: _icon
|
134 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
135 |
{ //-- local scope
|
136 |
} |
137 |
desc.setValidator(fieldValidator); |
138 |
//-- _dependsList
|
139 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.plugins.config.generate.Depends.class, "_dependsList", "depends", org.exolab.castor.xml.NodeType.Element); |
140 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
141 |
public java.lang.Object getValue( java.lang.Object object )
|
142 |
throws IllegalStateException |
143 |
{ |
144 |
PluginConfig target = (PluginConfig) object; |
145 |
return target.getDepends();
|
146 |
} |
147 |
public void setValue( java.lang.Object object, java.lang.Object value) |
148 |
throws IllegalStateException, IllegalArgumentException |
149 |
{ |
150 |
try {
|
151 |
PluginConfig target = (PluginConfig) object; |
152 |
target.addDepends( (com.iver.andami.plugins.config.generate.Depends) 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 com.iver.andami.plugins.config.generate.Depends(); |
160 |
} |
161 |
} ); |
162 |
desc.setHandler(handler); |
163 |
desc.setMultivalued(true);
|
164 |
addFieldDescriptor(desc); |
165 |
|
166 |
//-- validation code for: _dependsList
|
167 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
168 |
fieldValidator.setMinOccurs(0);
|
169 |
{ //-- local scope
|
170 |
} |
171 |
desc.setValidator(fieldValidator); |
172 |
//-- _resourceBundle
|
173 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.plugins.config.generate.ResourceBundle.class, "_resourceBundle", "resourceBundle", org.exolab.castor.xml.NodeType.Element); |
174 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
175 |
public java.lang.Object getValue( java.lang.Object object )
|
176 |
throws IllegalStateException |
177 |
{ |
178 |
PluginConfig target = (PluginConfig) object; |
179 |
return target.getResourceBundle();
|
180 |
} |
181 |
public void setValue( java.lang.Object object, java.lang.Object value) |
182 |
throws IllegalStateException, IllegalArgumentException |
183 |
{ |
184 |
try {
|
185 |
PluginConfig target = (PluginConfig) object; |
186 |
target.setResourceBundle( (com.iver.andami.plugins.config.generate.ResourceBundle) 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 com.iver.andami.plugins.config.generate.ResourceBundle(); |
194 |
} |
195 |
} ); |
196 |
desc.setHandler(handler); |
197 |
desc.setMultivalued(false);
|
198 |
addFieldDescriptor(desc); |
199 |
|
200 |
//-- validation code for: _resourceBundle
|
201 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
202 |
{ //-- local scope
|
203 |
} |
204 |
desc.setValidator(fieldValidator); |
205 |
//-- _labelSetList
|
206 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.plugins.config.generate.LabelSet.class, "_labelSetList", "label-set", org.exolab.castor.xml.NodeType.Element); |
207 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
208 |
public java.lang.Object getValue( java.lang.Object object )
|
209 |
throws IllegalStateException |
210 |
{ |
211 |
PluginConfig target = (PluginConfig) object; |
212 |
return target.getLabelSet();
|
213 |
} |
214 |
public void setValue( java.lang.Object object, java.lang.Object value) |
215 |
throws IllegalStateException, IllegalArgumentException |
216 |
{ |
217 |
try {
|
218 |
PluginConfig target = (PluginConfig) object; |
219 |
target.addLabelSet( (com.iver.andami.plugins.config.generate.LabelSet) 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 new com.iver.andami.plugins.config.generate.LabelSet(); |
227 |
} |
228 |
} ); |
229 |
desc.setHandler(handler); |
230 |
desc.setMultivalued(true);
|
231 |
addFieldDescriptor(desc); |
232 |
|
233 |
//-- validation code for: _labelSetList
|
234 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
235 |
fieldValidator.setMinOccurs(0);
|
236 |
{ //-- local scope
|
237 |
} |
238 |
desc.setValidator(fieldValidator); |
239 |
//-- _libraries
|
240 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.plugins.config.generate.Libraries.class, "_libraries", "libraries", org.exolab.castor.xml.NodeType.Element); |
241 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
242 |
public java.lang.Object getValue( java.lang.Object object )
|
243 |
throws IllegalStateException |
244 |
{ |
245 |
PluginConfig target = (PluginConfig) object; |
246 |
return target.getLibraries();
|
247 |
} |
248 |
public void setValue( java.lang.Object object, java.lang.Object value) |
249 |
throws IllegalStateException, IllegalArgumentException |
250 |
{ |
251 |
try {
|
252 |
PluginConfig target = (PluginConfig) object; |
253 |
target.setLibraries( (com.iver.andami.plugins.config.generate.Libraries) value); |
254 |
} |
255 |
catch (java.lang.Exception ex) {
|
256 |
throw new IllegalStateException(ex.toString()); |
257 |
} |
258 |
} |
259 |
public java.lang.Object newInstance( java.lang.Object parent ) {
|
260 |
return new com.iver.andami.plugins.config.generate.Libraries(); |
261 |
} |
262 |
} ); |
263 |
desc.setHandler(handler); |
264 |
desc.setRequired(true);
|
265 |
desc.setMultivalued(false);
|
266 |
addFieldDescriptor(desc); |
267 |
|
268 |
//-- validation code for: _libraries
|
269 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
270 |
fieldValidator.setMinOccurs(1);
|
271 |
{ //-- local scope
|
272 |
} |
273 |
desc.setValidator(fieldValidator); |
274 |
//-- _popupMenus
|
275 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.plugins.config.generate.PopupMenus.class, "_popupMenus", "popup-menus", org.exolab.castor.xml.NodeType.Element); |
276 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
277 |
public java.lang.Object getValue( java.lang.Object object )
|
278 |
throws IllegalStateException |
279 |
{ |
280 |
PluginConfig target = (PluginConfig) object; |
281 |
return target.getPopupMenus();
|
282 |
} |
283 |
public void setValue( java.lang.Object object, java.lang.Object value) |
284 |
throws IllegalStateException, IllegalArgumentException |
285 |
{ |
286 |
try {
|
287 |
PluginConfig target = (PluginConfig) object; |
288 |
target.setPopupMenus( (com.iver.andami.plugins.config.generate.PopupMenus) value); |
289 |
} |
290 |
catch (java.lang.Exception ex) {
|
291 |
throw new IllegalStateException(ex.toString()); |
292 |
} |
293 |
} |
294 |
public java.lang.Object newInstance( java.lang.Object parent ) {
|
295 |
return new com.iver.andami.plugins.config.generate.PopupMenus(); |
296 |
} |
297 |
} ); |
298 |
desc.setHandler(handler); |
299 |
desc.setMultivalued(false);
|
300 |
addFieldDescriptor(desc); |
301 |
|
302 |
//-- validation code for: _popupMenus
|
303 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
304 |
{ //-- local scope
|
305 |
} |
306 |
desc.setValidator(fieldValidator); |
307 |
//-- _extensions
|
308 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.plugins.config.generate.Extensions.class, "_extensions", "extensions", org.exolab.castor.xml.NodeType.Element); |
309 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
310 |
public java.lang.Object getValue( java.lang.Object object )
|
311 |
throws IllegalStateException |
312 |
{ |
313 |
PluginConfig target = (PluginConfig) object; |
314 |
return target.getExtensions();
|
315 |
} |
316 |
public void setValue( java.lang.Object object, java.lang.Object value) |
317 |
throws IllegalStateException, IllegalArgumentException |
318 |
{ |
319 |
try {
|
320 |
PluginConfig target = (PluginConfig) object; |
321 |
target.setExtensions( (com.iver.andami.plugins.config.generate.Extensions) value); |
322 |
} |
323 |
catch (java.lang.Exception ex) {
|
324 |
throw new IllegalStateException(ex.toString()); |
325 |
} |
326 |
} |
327 |
public java.lang.Object newInstance( java.lang.Object parent ) {
|
328 |
return new com.iver.andami.plugins.config.generate.Extensions(); |
329 |
} |
330 |
} ); |
331 |
desc.setHandler(handler); |
332 |
desc.setRequired(true);
|
333 |
desc.setMultivalued(false);
|
334 |
addFieldDescriptor(desc); |
335 |
|
336 |
//-- validation code for: _extensions
|
337 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
338 |
fieldValidator.setMinOccurs(1);
|
339 |
{ //-- local scope
|
340 |
} |
341 |
desc.setValidator(fieldValidator); |
342 |
} //-- com.iver.andami.plugins.config.generate.PluginConfigDescriptor()
|
343 |
|
344 |
|
345 |
//-----------/
|
346 |
//- Methods -/
|
347 |
//-----------/
|
348 |
|
349 |
/**
|
350 |
* Method getAccessMode
|
351 |
*/
|
352 |
public org.exolab.castor.mapping.AccessMode getAccessMode()
|
353 |
{ |
354 |
return null; |
355 |
} //-- org.exolab.castor.mapping.AccessMode getAccessMode()
|
356 |
|
357 |
/**
|
358 |
* Method getExtends
|
359 |
*/
|
360 |
public org.exolab.castor.mapping.ClassDescriptor getExtends()
|
361 |
{ |
362 |
return null; |
363 |
} //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
|
364 |
|
365 |
/**
|
366 |
* Method getIdentity
|
367 |
*/
|
368 |
public org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
369 |
{ |
370 |
return identity;
|
371 |
} //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
372 |
|
373 |
/**
|
374 |
* Method getJavaClass
|
375 |
*/
|
376 |
public java.lang.Class getJavaClass()
|
377 |
{ |
378 |
return com.iver.andami.plugins.config.generate.PluginConfig.class;
|
379 |
} //-- java.lang.Class getJavaClass()
|
380 |
|
381 |
/**
|
382 |
* Method getNameSpacePrefix
|
383 |
*/
|
384 |
public java.lang.String getNameSpacePrefix()
|
385 |
{ |
386 |
return nsPrefix;
|
387 |
} //-- java.lang.String getNameSpacePrefix()
|
388 |
|
389 |
/**
|
390 |
* Method getNameSpaceURI
|
391 |
*/
|
392 |
public java.lang.String getNameSpaceURI()
|
393 |
{ |
394 |
return nsURI;
|
395 |
} //-- java.lang.String getNameSpaceURI()
|
396 |
|
397 |
/**
|
398 |
* Method getValidator
|
399 |
*/
|
400 |
public org.exolab.castor.xml.TypeValidator getValidator()
|
401 |
{ |
402 |
return this; |
403 |
} //-- org.exolab.castor.xml.TypeValidator getValidator()
|
404 |
|
405 |
/**
|
406 |
* Method getXMLName
|
407 |
*/
|
408 |
public java.lang.String getXMLName()
|
409 |
{ |
410 |
return xmlName;
|
411 |
} //-- java.lang.String getXMLName()
|
412 |
|
413 |
} |