root / tags / v1_0_2_Build_912 / frameworks / _fwAndami / src / com / iver / andami / persistence / generate / PluginDescriptor.java @ 11422
History | View | Annotate | Download (12.1 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 | 1104 | fjp | /* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
9 | *
|
||
10 | * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
||
11 | *
|
||
12 | * This program is free software; you can redistribute it and/or
|
||
13 | * modify it under the terms of the GNU General Public License
|
||
14 | * as published by the Free Software Foundation; either version 2
|
||
15 | * of the License, or (at your option) any later version.
|
||
16 | *
|
||
17 | * This program is distributed in the hope that it will be useful,
|
||
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
20 | * GNU General Public License for more details.
|
||
21 | *
|
||
22 | * You should have received a copy of the GNU General Public License
|
||
23 | * along with this program; if not, write to the Free Software
|
||
24 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
||
25 | *
|
||
26 | * For more information, contact:
|
||
27 | *
|
||
28 | * Generalitat Valenciana
|
||
29 | * Conselleria d'Infraestructures i Transport
|
||
30 | * Av. Blasco Ib??ez, 50
|
||
31 | * 46010 VALENCIA
|
||
32 | * SPAIN
|
||
33 | *
|
||
34 | * +34 963862235
|
||
35 | * gvsig@gva.es
|
||
36 | * www.gvsig.gva.es
|
||
37 | *
|
||
38 | * or
|
||
39 | *
|
||
40 | * IVER T.I. S.A
|
||
41 | * Salamanca 50
|
||
42 | * 46005 Valencia
|
||
43 | * Spain
|
||
44 | *
|
||
45 | * +34 963163400
|
||
46 | * dac@iver.es
|
||
47 | */
|
||
48 | 598 | fernando | package com.iver.andami.persistence.generate; |
49 | |||
50 | //---------------------------------/
|
||
51 | //- Imported classes and packages -/
|
||
52 | //---------------------------------/
|
||
53 | |||
54 | 5275 | jaume | import org.exolab.castor.xml.validators.NameValidator; |
55 | 598 | fernando | |
56 | /**
|
||
57 | * Class PluginDescriptor.
|
||
58 | *
|
||
59 | * @version $Revision$ $Date$
|
||
60 | */
|
||
61 | public class PluginDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl { |
||
62 | |||
63 | |||
64 | //--------------------------/
|
||
65 | //- Class/Member Variables -/
|
||
66 | //--------------------------/
|
||
67 | |||
68 | /**
|
||
69 | * Field nsPrefix
|
||
70 | */
|
||
71 | private java.lang.String nsPrefix;
|
||
72 | |||
73 | /**
|
||
74 | * Field nsURI
|
||
75 | */
|
||
76 | private java.lang.String nsURI;
|
||
77 | |||
78 | /**
|
||
79 | * Field xmlName
|
||
80 | */
|
||
81 | private java.lang.String xmlName;
|
||
82 | |||
83 | /**
|
||
84 | * Field identity
|
||
85 | */
|
||
86 | private org.exolab.castor.xml.XMLFieldDescriptor identity;
|
||
87 | |||
88 | |||
89 | //----------------/
|
||
90 | //- Constructors -/
|
||
91 | //----------------/
|
||
92 | |||
93 | public PluginDescriptor() {
|
||
94 | super();
|
||
95 | xmlName = "plugin";
|
||
96 | |||
97 | //-- set grouping compositor
|
||
98 | setCompositorAsSequence(); |
||
99 | org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
|
||
100 | org.exolab.castor.xml.XMLFieldHandler handler = null;
|
||
101 | org.exolab.castor.xml.FieldValidator fieldValidator = null;
|
||
102 | //-- initialize attribute descriptors
|
||
103 | |||
104 | //-- _name
|
||
105 | desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute); |
||
106 | handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
||
107 | public java.lang.Object getValue( java.lang.Object object )
|
||
108 | throws IllegalStateException |
||
109 | { |
||
110 | Plugin target = (Plugin) object; |
||
111 | return target.getName();
|
||
112 | } |
||
113 | public void setValue( java.lang.Object object, java.lang.Object value) |
||
114 | throws IllegalStateException, IllegalArgumentException |
||
115 | { |
||
116 | try {
|
||
117 | Plugin target = (Plugin) object; |
||
118 | target.setName( (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 new java.lang.String(); |
||
126 | } |
||
127 | } ); |
||
128 | desc.setHandler(handler); |
||
129 | desc.setRequired(true);
|
||
130 | addFieldDescriptor(desc); |
||
131 | |||
132 | //-- validation code for: _name
|
||
133 | fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
||
134 | fieldValidator.setMinOccurs(1);
|
||
135 | { //-- local scope
|
||
136 | NameValidator typeValidator = new NameValidator(NameValidator.NMTOKEN);
|
||
137 | fieldValidator.setValidator(typeValidator); |
||
138 | } |
||
139 | desc.setValidator(fieldValidator); |
||
140 | //-- _lastUpdate
|
||
141 | desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_lastUpdate", "lastUpdate", org.exolab.castor.xml.NodeType.Attribute); |
||
142 | handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
||
143 | public java.lang.Object getValue( java.lang.Object object )
|
||
144 | throws IllegalStateException |
||
145 | { |
||
146 | Plugin target = (Plugin) object; |
||
147 | return target.getLastUpdate();
|
||
148 | } |
||
149 | public void setValue( java.lang.Object object, java.lang.Object value) |
||
150 | throws IllegalStateException, IllegalArgumentException |
||
151 | { |
||
152 | try {
|
||
153 | Plugin target = (Plugin) object; |
||
154 | target.setLastUpdate( (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 new java.lang.String(); |
||
162 | } |
||
163 | } ); |
||
164 | desc.setHandler(handler); |
||
165 | desc.setRequired(true);
|
||
166 | addFieldDescriptor(desc); |
||
167 | |||
168 | //-- validation code for: _lastUpdate
|
||
169 | fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
||
170 | fieldValidator.setMinOccurs(1);
|
||
171 | { //-- local scope
|
||
172 | NameValidator typeValidator = new NameValidator(NameValidator.NMTOKEN);
|
||
173 | fieldValidator.setValidator(typeValidator); |
||
174 | } |
||
175 | desc.setValidator(fieldValidator); |
||
176 | //-- initialize element descriptors
|
||
177 | |||
178 | //-- _xmlEntity
|
||
179 | desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.persistence.generate.XmlEntity.class, "_xmlEntity", "xml-entity", org.exolab.castor.xml.NodeType.Element); |
||
180 | handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
||
181 | public java.lang.Object getValue( java.lang.Object object )
|
||
182 | throws IllegalStateException |
||
183 | { |
||
184 | Plugin target = (Plugin) object; |
||
185 | return target.getXmlEntity();
|
||
186 | } |
||
187 | public void setValue( java.lang.Object object, java.lang.Object value) |
||
188 | throws IllegalStateException, IllegalArgumentException |
||
189 | { |
||
190 | try {
|
||
191 | Plugin target = (Plugin) object; |
||
192 | target.setXmlEntity( (com.iver.andami.persistence.generate.XmlEntity) value); |
||
193 | } |
||
194 | catch (java.lang.Exception ex) {
|
||
195 | throw new IllegalStateException(ex.toString()); |
||
196 | } |
||
197 | } |
||
198 | public java.lang.Object newInstance( java.lang.Object parent ) {
|
||
199 | return new com.iver.andami.persistence.generate.XmlEntity(); |
||
200 | } |
||
201 | } ); |
||
202 | desc.setHandler(handler); |
||
203 | desc.setRequired(true);
|
||
204 | desc.setMultivalued(false);
|
||
205 | addFieldDescriptor(desc); |
||
206 | |||
207 | //-- validation code for: _xmlEntity
|
||
208 | fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
||
209 | fieldValidator.setMinOccurs(1);
|
||
210 | { //-- local scope
|
||
211 | } |
||
212 | desc.setValidator(fieldValidator); |
||
213 | //-- _bookmarks
|
||
214 | desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.persistence.generate.Bookmarks.class, "_bookmarks", "bookmarks", org.exolab.castor.xml.NodeType.Element); |
||
215 | handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
||
216 | public java.lang.Object getValue( java.lang.Object object )
|
||
217 | throws IllegalStateException |
||
218 | { |
||
219 | Plugin target = (Plugin) object; |
||
220 | return target.getBookmarks();
|
||
221 | } |
||
222 | public void setValue( java.lang.Object object, java.lang.Object value) |
||
223 | throws IllegalStateException, IllegalArgumentException |
||
224 | { |
||
225 | try {
|
||
226 | Plugin target = (Plugin) object; |
||
227 | target.setBookmarks( (com.iver.andami.persistence.generate.Bookmarks) value); |
||
228 | } |
||
229 | catch (java.lang.Exception ex) {
|
||
230 | throw new IllegalStateException(ex.toString()); |
||
231 | } |
||
232 | } |
||
233 | public java.lang.Object newInstance( java.lang.Object parent ) {
|
||
234 | return new com.iver.andami.persistence.generate.Bookmarks(); |
||
235 | } |
||
236 | } ); |
||
237 | desc.setHandler(handler); |
||
238 | desc.setRequired(true);
|
||
239 | desc.setMultivalued(false);
|
||
240 | addFieldDescriptor(desc); |
||
241 | |||
242 | //-- validation code for: _bookmarks
|
||
243 | fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
||
244 | fieldValidator.setMinOccurs(1);
|
||
245 | { //-- local scope
|
||
246 | } |
||
247 | desc.setValidator(fieldValidator); |
||
248 | //-- _windows
|
||
249 | desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.persistence.generate.Windows.class, "_windows", "windows", org.exolab.castor.xml.NodeType.Element); |
||
250 | handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
||
251 | public java.lang.Object getValue( java.lang.Object object )
|
||
252 | throws IllegalStateException |
||
253 | { |
||
254 | Plugin target = (Plugin) object; |
||
255 | return target.getWindows();
|
||
256 | } |
||
257 | public void setValue( java.lang.Object object, java.lang.Object value) |
||
258 | throws IllegalStateException, IllegalArgumentException |
||
259 | { |
||
260 | try {
|
||
261 | Plugin target = (Plugin) object; |
||
262 | target.setWindows( (com.iver.andami.persistence.generate.Windows) value); |
||
263 | } |
||
264 | catch (java.lang.Exception ex) {
|
||
265 | throw new IllegalStateException(ex.toString()); |
||
266 | } |
||
267 | } |
||
268 | public java.lang.Object newInstance( java.lang.Object parent ) {
|
||
269 | return new com.iver.andami.persistence.generate.Windows(); |
||
270 | } |
||
271 | } ); |
||
272 | desc.setHandler(handler); |
||
273 | desc.setRequired(true);
|
||
274 | desc.setMultivalued(false);
|
||
275 | addFieldDescriptor(desc); |
||
276 | |||
277 | //-- validation code for: _windows
|
||
278 | fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
||
279 | fieldValidator.setMinOccurs(1);
|
||
280 | { //-- local scope
|
||
281 | } |
||
282 | desc.setValidator(fieldValidator); |
||
283 | } //-- com.iver.andami.persistence.generate.PluginDescriptor()
|
||
284 | |||
285 | |||
286 | //-----------/
|
||
287 | //- Methods -/
|
||
288 | //-----------/
|
||
289 | |||
290 | /**
|
||
291 | * Method getAccessMode
|
||
292 | */
|
||
293 | public org.exolab.castor.mapping.AccessMode getAccessMode()
|
||
294 | { |
||
295 | return null; |
||
296 | } //-- org.exolab.castor.mapping.AccessMode getAccessMode()
|
||
297 | |||
298 | /**
|
||
299 | * Method getExtends
|
||
300 | */
|
||
301 | public org.exolab.castor.mapping.ClassDescriptor getExtends()
|
||
302 | { |
||
303 | return null; |
||
304 | } //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
|
||
305 | |||
306 | /**
|
||
307 | * Method getIdentity
|
||
308 | */
|
||
309 | public org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
||
310 | { |
||
311 | return identity;
|
||
312 | } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
||
313 | |||
314 | /**
|
||
315 | * Method getJavaClass
|
||
316 | */
|
||
317 | public java.lang.Class getJavaClass()
|
||
318 | { |
||
319 | return com.iver.andami.persistence.generate.Plugin.class;
|
||
320 | } //-- java.lang.Class getJavaClass()
|
||
321 | |||
322 | /**
|
||
323 | * Method getNameSpacePrefix
|
||
324 | */
|
||
325 | public java.lang.String getNameSpacePrefix()
|
||
326 | { |
||
327 | return nsPrefix;
|
||
328 | } //-- java.lang.String getNameSpacePrefix()
|
||
329 | |||
330 | /**
|
||
331 | * Method getNameSpaceURI
|
||
332 | */
|
||
333 | public java.lang.String getNameSpaceURI()
|
||
334 | { |
||
335 | return nsURI;
|
||
336 | } //-- java.lang.String getNameSpaceURI()
|
||
337 | |||
338 | /**
|
||
339 | * Method getValidator
|
||
340 | */
|
||
341 | public org.exolab.castor.xml.TypeValidator getValidator()
|
||
342 | { |
||
343 | return this; |
||
344 | } //-- org.exolab.castor.xml.TypeValidator getValidator()
|
||
345 | |||
346 | /**
|
||
347 | * Method getXMLName
|
||
348 | */
|
||
349 | public java.lang.String getXMLName()
|
||
350 | { |
||
351 | return xmlName;
|
||
352 | } //-- java.lang.String getXMLName()
|
||
353 | |||
354 | } |