svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.framework / org.gvsig.andami / src / main / java / org / gvsig / andami / persistence / generate / PluginDescriptor.java @ 40596
History | View | Annotate | Download (11.9 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright (C) 2007-2013 gvSIG Association.
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 3
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
* For any additional information, do not hesitate to contact us
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
23 |
*/
|
24 |
/*
|
25 |
* This class was automatically generated with
|
26 |
* <a href="http://www.castor.org">Castor 0.9.5.3</a>, using an XML
|
27 |
* Schema.
|
28 |
* $Id: PluginDescriptor.java 29593 2009-06-29 15:54:31Z jpiera $
|
29 |
*/
|
30 |
|
31 |
package org.gvsig.andami.persistence.generate; |
32 |
|
33 |
//---------------------------------/
|
34 |
//- Imported classes and packages -/
|
35 |
//---------------------------------/
|
36 |
|
37 |
import org.exolab.castor.xml.validators.NameValidator; |
38 |
|
39 |
/**
|
40 |
* Class PluginDescriptor.
|
41 |
*
|
42 |
* @version $Revision: 29593 $ $Date: 2009-06-29 17:54:31 +0200 (lun, 29 jun 2009) $
|
43 |
*/
|
44 |
public class PluginDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl { |
45 |
|
46 |
|
47 |
//--------------------------/
|
48 |
//- Class/Member Variables -/
|
49 |
//--------------------------/
|
50 |
|
51 |
/**
|
52 |
* Field nsPrefix
|
53 |
*/
|
54 |
private java.lang.String nsPrefix;
|
55 |
|
56 |
/**
|
57 |
* Field nsURI
|
58 |
*/
|
59 |
private java.lang.String nsURI;
|
60 |
|
61 |
/**
|
62 |
* Field xmlName
|
63 |
*/
|
64 |
private java.lang.String xmlName;
|
65 |
|
66 |
/**
|
67 |
* Field identity
|
68 |
*/
|
69 |
private org.exolab.castor.xml.XMLFieldDescriptor identity;
|
70 |
|
71 |
|
72 |
//----------------/
|
73 |
//- Constructors -/
|
74 |
//----------------/
|
75 |
|
76 |
public PluginDescriptor() {
|
77 |
super();
|
78 |
xmlName = "plugin";
|
79 |
|
80 |
//-- set grouping compositor
|
81 |
setCompositorAsSequence(); |
82 |
org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
|
83 |
org.exolab.castor.xml.XMLFieldHandler handler = null;
|
84 |
org.exolab.castor.xml.FieldValidator fieldValidator = null;
|
85 |
//-- initialize attribute descriptors
|
86 |
|
87 |
//-- _name
|
88 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute); |
89 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
90 |
public java.lang.Object getValue( java.lang.Object object )
|
91 |
throws IllegalStateException |
92 |
{ |
93 |
Plugin target = (Plugin) object; |
94 |
return target.getName();
|
95 |
} |
96 |
public void setValue( java.lang.Object object, java.lang.Object value) |
97 |
throws IllegalStateException, IllegalArgumentException |
98 |
{ |
99 |
try {
|
100 |
Plugin target = (Plugin) object; |
101 |
target.setName( (java.lang.String) value); |
102 |
} |
103 |
catch (java.lang.Exception ex) {
|
104 |
throw new IllegalStateException(ex.toString()); |
105 |
} |
106 |
} |
107 |
public java.lang.Object newInstance( java.lang.Object parent ) {
|
108 |
return new java.lang.String(); |
109 |
} |
110 |
} ); |
111 |
desc.setHandler(handler); |
112 |
desc.setRequired(true);
|
113 |
addFieldDescriptor(desc); |
114 |
|
115 |
//-- validation code for: _name
|
116 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
117 |
fieldValidator.setMinOccurs(1);
|
118 |
{ //-- local scope
|
119 |
NameValidator typeValidator = new NameValidator(NameValidator.NMTOKEN);
|
120 |
fieldValidator.setValidator(typeValidator); |
121 |
} |
122 |
desc.setValidator(fieldValidator); |
123 |
//-- _lastUpdate
|
124 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_lastUpdate", "lastUpdate", org.exolab.castor.xml.NodeType.Attribute); |
125 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
126 |
public java.lang.Object getValue( java.lang.Object object )
|
127 |
throws IllegalStateException |
128 |
{ |
129 |
Plugin target = (Plugin) object; |
130 |
return target.getLastUpdate();
|
131 |
} |
132 |
public void setValue( java.lang.Object object, java.lang.Object value) |
133 |
throws IllegalStateException, IllegalArgumentException |
134 |
{ |
135 |
try {
|
136 |
Plugin target = (Plugin) object; |
137 |
target.setLastUpdate( (java.lang.String) value); |
138 |
} |
139 |
catch (java.lang.Exception ex) {
|
140 |
throw new IllegalStateException(ex.toString()); |
141 |
} |
142 |
} |
143 |
public java.lang.Object newInstance( java.lang.Object parent ) {
|
144 |
return new java.lang.String(); |
145 |
} |
146 |
} ); |
147 |
desc.setHandler(handler); |
148 |
desc.setRequired(true);
|
149 |
addFieldDescriptor(desc); |
150 |
|
151 |
//-- validation code for: _lastUpdate
|
152 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
153 |
fieldValidator.setMinOccurs(1);
|
154 |
{ //-- local scope
|
155 |
NameValidator typeValidator = new NameValidator(NameValidator.NMTOKEN);
|
156 |
fieldValidator.setValidator(typeValidator); |
157 |
} |
158 |
desc.setValidator(fieldValidator); |
159 |
//-- initialize element descriptors
|
160 |
|
161 |
//-- _xmlEntity
|
162 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.gvsig.andami.persistence.generate.XmlEntity.class, "_xmlEntity", "xml-entity", org.exolab.castor.xml.NodeType.Element); |
163 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
164 |
public java.lang.Object getValue( java.lang.Object object )
|
165 |
throws IllegalStateException |
166 |
{ |
167 |
Plugin target = (Plugin) object; |
168 |
return target.getXmlEntity();
|
169 |
} |
170 |
public void setValue( java.lang.Object object, java.lang.Object value) |
171 |
throws IllegalStateException, IllegalArgumentException |
172 |
{ |
173 |
try {
|
174 |
Plugin target = (Plugin) object; |
175 |
target.setXmlEntity( (org.gvsig.andami.persistence.generate.XmlEntity) value); |
176 |
} |
177 |
catch (java.lang.Exception ex) {
|
178 |
throw new IllegalStateException(ex.toString()); |
179 |
} |
180 |
} |
181 |
public java.lang.Object newInstance( java.lang.Object parent ) {
|
182 |
return new org.gvsig.andami.persistence.generate.XmlEntity(); |
183 |
} |
184 |
} ); |
185 |
desc.setHandler(handler); |
186 |
desc.setRequired(true);
|
187 |
desc.setMultivalued(false);
|
188 |
addFieldDescriptor(desc); |
189 |
|
190 |
//-- validation code for: _xmlEntity
|
191 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
192 |
fieldValidator.setMinOccurs(1);
|
193 |
{ //-- local scope
|
194 |
} |
195 |
desc.setValidator(fieldValidator); |
196 |
//-- _bookmarks
|
197 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.gvsig.andami.persistence.generate.Bookmarks.class, "_bookmarks", "bookmarks", org.exolab.castor.xml.NodeType.Element); |
198 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
199 |
public java.lang.Object getValue( java.lang.Object object )
|
200 |
throws IllegalStateException |
201 |
{ |
202 |
Plugin target = (Plugin) object; |
203 |
return target.getBookmarks();
|
204 |
} |
205 |
public void setValue( java.lang.Object object, java.lang.Object value) |
206 |
throws IllegalStateException, IllegalArgumentException |
207 |
{ |
208 |
try {
|
209 |
Plugin target = (Plugin) object; |
210 |
target.setBookmarks( (org.gvsig.andami.persistence.generate.Bookmarks) value); |
211 |
} |
212 |
catch (java.lang.Exception ex) {
|
213 |
throw new IllegalStateException(ex.toString()); |
214 |
} |
215 |
} |
216 |
public java.lang.Object newInstance( java.lang.Object parent ) {
|
217 |
return new org.gvsig.andami.persistence.generate.Bookmarks(); |
218 |
} |
219 |
} ); |
220 |
desc.setHandler(handler); |
221 |
desc.setRequired(true);
|
222 |
desc.setMultivalued(false);
|
223 |
addFieldDescriptor(desc); |
224 |
|
225 |
//-- validation code for: _bookmarks
|
226 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
227 |
fieldValidator.setMinOccurs(1);
|
228 |
{ //-- local scope
|
229 |
} |
230 |
desc.setValidator(fieldValidator); |
231 |
//-- _windows
|
232 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.gvsig.andami.persistence.generate.Windows.class, "_windows", "windows", org.exolab.castor.xml.NodeType.Element); |
233 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
234 |
public java.lang.Object getValue( java.lang.Object object )
|
235 |
throws IllegalStateException |
236 |
{ |
237 |
Plugin target = (Plugin) object; |
238 |
return target.getWindows();
|
239 |
} |
240 |
public void setValue( java.lang.Object object, java.lang.Object value) |
241 |
throws IllegalStateException, IllegalArgumentException |
242 |
{ |
243 |
try {
|
244 |
Plugin target = (Plugin) object; |
245 |
target.setWindows( (org.gvsig.andami.persistence.generate.Windows) value); |
246 |
} |
247 |
catch (java.lang.Exception ex) {
|
248 |
throw new IllegalStateException(ex.toString()); |
249 |
} |
250 |
} |
251 |
public java.lang.Object newInstance( java.lang.Object parent ) {
|
252 |
return new org.gvsig.andami.persistence.generate.Windows(); |
253 |
} |
254 |
} ); |
255 |
desc.setHandler(handler); |
256 |
desc.setRequired(true);
|
257 |
desc.setMultivalued(false);
|
258 |
addFieldDescriptor(desc); |
259 |
|
260 |
//-- validation code for: _windows
|
261 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
262 |
fieldValidator.setMinOccurs(1);
|
263 |
{ //-- local scope
|
264 |
} |
265 |
desc.setValidator(fieldValidator); |
266 |
} //-- com.iver.andami.persistence.generate.PluginDescriptor()
|
267 |
|
268 |
|
269 |
//-----------/
|
270 |
//- Methods -/
|
271 |
//-----------/
|
272 |
|
273 |
/**
|
274 |
* Method getAccessMode
|
275 |
*/
|
276 |
public org.exolab.castor.mapping.AccessMode getAccessMode()
|
277 |
{ |
278 |
return null; |
279 |
} //-- org.exolab.castor.mapping.AccessMode getAccessMode()
|
280 |
|
281 |
/**
|
282 |
* Method getExtends
|
283 |
*/
|
284 |
public org.exolab.castor.mapping.ClassDescriptor getExtends()
|
285 |
{ |
286 |
return null; |
287 |
} //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
|
288 |
|
289 |
/**
|
290 |
* Method getIdentity
|
291 |
*/
|
292 |
public org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
293 |
{ |
294 |
return identity;
|
295 |
} //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
296 |
|
297 |
/**
|
298 |
* Method getJavaClass
|
299 |
*/
|
300 |
public java.lang.Class getJavaClass()
|
301 |
{ |
302 |
return org.gvsig.andami.persistence.generate.Plugin.class;
|
303 |
} //-- java.lang.Class getJavaClass()
|
304 |
|
305 |
/**
|
306 |
* Method getNameSpacePrefix
|
307 |
*/
|
308 |
public java.lang.String getNameSpacePrefix()
|
309 |
{ |
310 |
return nsPrefix;
|
311 |
} //-- java.lang.String getNameSpacePrefix()
|
312 |
|
313 |
/**
|
314 |
* Method getNameSpaceURI
|
315 |
*/
|
316 |
public java.lang.String getNameSpaceURI()
|
317 |
{ |
318 |
return nsURI;
|
319 |
} //-- java.lang.String getNameSpaceURI()
|
320 |
|
321 |
/**
|
322 |
* Method getValidator
|
323 |
*/
|
324 |
public org.exolab.castor.xml.TypeValidator getValidator()
|
325 |
{ |
326 |
return this; |
327 |
} //-- org.exolab.castor.xml.TypeValidator getValidator()
|
328 |
|
329 |
/**
|
330 |
* Method getXMLName
|
331 |
*/
|
332 |
public java.lang.String getXMLName()
|
333 |
{ |
334 |
return xmlName;
|
335 |
} //-- java.lang.String getXMLName()
|
336 |
|
337 |
} |