svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.framework / org.gvsig.andami / src / main / java / org / gvsig / andami / persistence / generate / ToolBarDescriptor.java @ 40596
History | View | Annotate | Download (8.78 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: ToolBarDescriptor.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 ToolBarDescriptor.
|
41 |
*
|
42 |
* @version $Revision: 29593 $ $Date: 2009-06-29 17:54:31 +0200 (lun, 29 jun 2009) $
|
43 |
*/
|
44 |
public class ToolBarDescriptor 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 ToolBarDescriptor() {
|
77 |
super();
|
78 |
xmlName = "tool-bar";
|
79 |
org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
|
80 |
org.exolab.castor.xml.XMLFieldHandler handler = null;
|
81 |
org.exolab.castor.xml.FieldValidator fieldValidator = null;
|
82 |
//-- initialize attribute descriptors
|
83 |
|
84 |
//-- _xPosition
|
85 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_xPosition", "x-position", org.exolab.castor.xml.NodeType.Attribute); |
86 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
87 |
public java.lang.Object getValue( java.lang.Object object )
|
88 |
throws IllegalStateException |
89 |
{ |
90 |
ToolBar target = (ToolBar) object; |
91 |
return target.getXPosition();
|
92 |
} |
93 |
public void setValue( java.lang.Object object, java.lang.Object value) |
94 |
throws IllegalStateException, IllegalArgumentException |
95 |
{ |
96 |
try {
|
97 |
ToolBar target = (ToolBar) object; |
98 |
target.setXPosition( (java.lang.String) value); |
99 |
} |
100 |
catch (java.lang.Exception ex) {
|
101 |
throw new IllegalStateException(ex.toString()); |
102 |
} |
103 |
} |
104 |
public java.lang.Object newInstance( java.lang.Object parent ) {
|
105 |
return new java.lang.String(); |
106 |
} |
107 |
} ); |
108 |
desc.setHandler(handler); |
109 |
desc.setRequired(true);
|
110 |
addFieldDescriptor(desc); |
111 |
|
112 |
//-- validation code for: _xPosition
|
113 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
114 |
fieldValidator.setMinOccurs(1);
|
115 |
{ //-- local scope
|
116 |
NameValidator typeValidator = new NameValidator(NameValidator.NMTOKEN);
|
117 |
fieldValidator.setValidator(typeValidator); |
118 |
} |
119 |
desc.setValidator(fieldValidator); |
120 |
//-- _yPosition
|
121 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_yPosition", "y-position", org.exolab.castor.xml.NodeType.Attribute); |
122 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
123 |
public java.lang.Object getValue( java.lang.Object object )
|
124 |
throws IllegalStateException |
125 |
{ |
126 |
ToolBar target = (ToolBar) object; |
127 |
return target.getYPosition();
|
128 |
} |
129 |
public void setValue( java.lang.Object object, java.lang.Object value) |
130 |
throws IllegalStateException, IllegalArgumentException |
131 |
{ |
132 |
try {
|
133 |
ToolBar target = (ToolBar) object; |
134 |
target.setYPosition( (java.lang.String) value); |
135 |
} |
136 |
catch (java.lang.Exception ex) {
|
137 |
throw new IllegalStateException(ex.toString()); |
138 |
} |
139 |
} |
140 |
public java.lang.Object newInstance( java.lang.Object parent ) {
|
141 |
return new java.lang.String(); |
142 |
} |
143 |
} ); |
144 |
desc.setHandler(handler); |
145 |
desc.setRequired(true);
|
146 |
addFieldDescriptor(desc); |
147 |
|
148 |
//-- validation code for: _yPosition
|
149 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
150 |
fieldValidator.setMinOccurs(1);
|
151 |
{ //-- local scope
|
152 |
NameValidator typeValidator = new NameValidator(NameValidator.NMTOKEN);
|
153 |
fieldValidator.setValidator(typeValidator); |
154 |
} |
155 |
desc.setValidator(fieldValidator); |
156 |
//-- _name
|
157 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute); |
158 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
159 |
public java.lang.Object getValue( java.lang.Object object )
|
160 |
throws IllegalStateException |
161 |
{ |
162 |
ToolBar target = (ToolBar) object; |
163 |
return target.getName();
|
164 |
} |
165 |
public void setValue( java.lang.Object object, java.lang.Object value) |
166 |
throws IllegalStateException, IllegalArgumentException |
167 |
{ |
168 |
try {
|
169 |
ToolBar target = (ToolBar) object; |
170 |
target.setName( (java.lang.String) value); |
171 |
} |
172 |
catch (java.lang.Exception ex) {
|
173 |
throw new IllegalStateException(ex.toString()); |
174 |
} |
175 |
} |
176 |
public java.lang.Object newInstance( java.lang.Object parent ) {
|
177 |
return new java.lang.String(); |
178 |
} |
179 |
} ); |
180 |
desc.setHandler(handler); |
181 |
desc.setRequired(true);
|
182 |
addFieldDescriptor(desc); |
183 |
|
184 |
//-- validation code for: _name
|
185 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
186 |
fieldValidator.setMinOccurs(1);
|
187 |
{ //-- local scope
|
188 |
NameValidator typeValidator = new NameValidator(NameValidator.NMTOKEN);
|
189 |
fieldValidator.setValidator(typeValidator); |
190 |
} |
191 |
desc.setValidator(fieldValidator); |
192 |
//-- initialize element descriptors
|
193 |
|
194 |
} //-- com.iver.andami.persistence.generate.ToolBarDescriptor()
|
195 |
|
196 |
|
197 |
//-----------/
|
198 |
//- Methods -/
|
199 |
//-----------/
|
200 |
|
201 |
/**
|
202 |
* Method getAccessMode
|
203 |
*/
|
204 |
public org.exolab.castor.mapping.AccessMode getAccessMode()
|
205 |
{ |
206 |
return null; |
207 |
} //-- org.exolab.castor.mapping.AccessMode getAccessMode()
|
208 |
|
209 |
/**
|
210 |
* Method getExtends
|
211 |
*/
|
212 |
public org.exolab.castor.mapping.ClassDescriptor getExtends()
|
213 |
{ |
214 |
return null; |
215 |
} //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
|
216 |
|
217 |
/**
|
218 |
* Method getIdentity
|
219 |
*/
|
220 |
public org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
221 |
{ |
222 |
return identity;
|
223 |
} //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
224 |
|
225 |
/**
|
226 |
* Method getJavaClass
|
227 |
*/
|
228 |
public java.lang.Class getJavaClass()
|
229 |
{ |
230 |
return org.gvsig.andami.persistence.generate.ToolBar.class;
|
231 |
} //-- java.lang.Class getJavaClass()
|
232 |
|
233 |
/**
|
234 |
* Method getNameSpacePrefix
|
235 |
*/
|
236 |
public java.lang.String getNameSpacePrefix()
|
237 |
{ |
238 |
return nsPrefix;
|
239 |
} //-- java.lang.String getNameSpacePrefix()
|
240 |
|
241 |
/**
|
242 |
* Method getNameSpaceURI
|
243 |
*/
|
244 |
public java.lang.String getNameSpaceURI()
|
245 |
{ |
246 |
return nsURI;
|
247 |
} //-- java.lang.String getNameSpaceURI()
|
248 |
|
249 |
/**
|
250 |
* Method getValidator
|
251 |
*/
|
252 |
public org.exolab.castor.xml.TypeValidator getValidator()
|
253 |
{ |
254 |
return this; |
255 |
} //-- org.exolab.castor.xml.TypeValidator getValidator()
|
256 |
|
257 |
/**
|
258 |
* Method getXMLName
|
259 |
*/
|
260 |
public java.lang.String getXMLName()
|
261 |
{ |
262 |
return xmlName;
|
263 |
} //-- java.lang.String getXMLName()
|
264 |
|
265 |
} |