root / branches / v2_0_0_prep / frameworks / _fwAndami / src / org / gvsig / andami / persistence / generate / BookmarkDescriptor.java @ 29593
History | View | Annotate | Download (7.48 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: BookmarkDescriptor.java 29593 2009-06-29 15:54:31Z jpiera $
|
6 |
*/
|
7 |
|
8 |
/* 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 |
package org.gvsig.andami.persistence.generate; |
49 |
|
50 |
//---------------------------------/
|
51 |
//- Imported classes and packages -/
|
52 |
//---------------------------------/
|
53 |
|
54 |
import org.exolab.castor.xml.validators.StringValidator; |
55 |
|
56 |
/**
|
57 |
* Class BookmarkDescriptor.
|
58 |
*
|
59 |
* @version $Revision: 29593 $ $Date: 2009-06-29 17:54:31 +0200 (Mon, 29 Jun 2009) $
|
60 |
*/
|
61 |
public class BookmarkDescriptor 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 BookmarkDescriptor() {
|
94 |
super();
|
95 |
xmlName = "bookmark";
|
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 |
//-- _text
|
105 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_text", "text", org.exolab.castor.xml.NodeType.Attribute); |
106 |
desc.setImmutable(true);
|
107 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
108 |
public java.lang.Object getValue( java.lang.Object object )
|
109 |
throws IllegalStateException |
110 |
{ |
111 |
Bookmark target = (Bookmark) object; |
112 |
return target.getText();
|
113 |
} |
114 |
public void setValue( java.lang.Object object, java.lang.Object value) |
115 |
throws IllegalStateException, IllegalArgumentException |
116 |
{ |
117 |
try {
|
118 |
Bookmark target = (Bookmark) object; |
119 |
target.setText( (java.lang.String) 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 null; |
127 |
} |
128 |
} ); |
129 |
desc.setHandler(handler); |
130 |
desc.setRequired(true);
|
131 |
addFieldDescriptor(desc); |
132 |
|
133 |
//-- validation code for: _text
|
134 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
135 |
fieldValidator.setMinOccurs(1);
|
136 |
{ //-- local scope
|
137 |
StringValidator typeValidator = new StringValidator();
|
138 |
typeValidator.setWhiteSpace("preserve");
|
139 |
fieldValidator.setValidator(typeValidator); |
140 |
} |
141 |
desc.setValidator(fieldValidator); |
142 |
//-- initialize element descriptors
|
143 |
|
144 |
//-- _xmlEntity
|
145 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.gvsig.andami.persistence.generate.XmlEntity.class, "_xmlEntity", "xml-entity", org.exolab.castor.xml.NodeType.Element); |
146 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
147 |
public java.lang.Object getValue( java.lang.Object object )
|
148 |
throws IllegalStateException |
149 |
{ |
150 |
Bookmark target = (Bookmark) object; |
151 |
return target.getXmlEntity();
|
152 |
} |
153 |
public void setValue( java.lang.Object object, java.lang.Object value) |
154 |
throws IllegalStateException, IllegalArgumentException |
155 |
{ |
156 |
try {
|
157 |
Bookmark target = (Bookmark) object; |
158 |
target.setXmlEntity( (org.gvsig.andami.persistence.generate.XmlEntity) value); |
159 |
} |
160 |
catch (java.lang.Exception ex) {
|
161 |
throw new IllegalStateException(ex.toString()); |
162 |
} |
163 |
} |
164 |
public java.lang.Object newInstance( java.lang.Object parent ) {
|
165 |
return new org.gvsig.andami.persistence.generate.XmlEntity(); |
166 |
} |
167 |
} ); |
168 |
desc.setHandler(handler); |
169 |
desc.setRequired(true);
|
170 |
desc.setMultivalued(false);
|
171 |
addFieldDescriptor(desc); |
172 |
|
173 |
//-- validation code for: _xmlEntity
|
174 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
175 |
fieldValidator.setMinOccurs(1);
|
176 |
{ //-- local scope
|
177 |
} |
178 |
desc.setValidator(fieldValidator); |
179 |
} //-- com.iver.andami.persistence.generate.BookmarkDescriptor()
|
180 |
|
181 |
|
182 |
//-----------/
|
183 |
//- Methods -/
|
184 |
//-----------/
|
185 |
|
186 |
/**
|
187 |
* Method getAccessMode
|
188 |
*/
|
189 |
public org.exolab.castor.mapping.AccessMode getAccessMode()
|
190 |
{ |
191 |
return null; |
192 |
} //-- org.exolab.castor.mapping.AccessMode getAccessMode()
|
193 |
|
194 |
/**
|
195 |
* Method getExtends
|
196 |
*/
|
197 |
public org.exolab.castor.mapping.ClassDescriptor getExtends()
|
198 |
{ |
199 |
return null; |
200 |
} //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
|
201 |
|
202 |
/**
|
203 |
* Method getIdentity
|
204 |
*/
|
205 |
public org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
206 |
{ |
207 |
return identity;
|
208 |
} //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
209 |
|
210 |
/**
|
211 |
* Method getJavaClass
|
212 |
*/
|
213 |
public java.lang.Class getJavaClass()
|
214 |
{ |
215 |
return org.gvsig.andami.persistence.generate.Bookmark.class;
|
216 |
} //-- java.lang.Class getJavaClass()
|
217 |
|
218 |
/**
|
219 |
* Method getNameSpacePrefix
|
220 |
*/
|
221 |
public java.lang.String getNameSpacePrefix()
|
222 |
{ |
223 |
return nsPrefix;
|
224 |
} //-- java.lang.String getNameSpacePrefix()
|
225 |
|
226 |
/**
|
227 |
* Method getNameSpaceURI
|
228 |
*/
|
229 |
public java.lang.String getNameSpaceURI()
|
230 |
{ |
231 |
return nsURI;
|
232 |
} //-- java.lang.String getNameSpaceURI()
|
233 |
|
234 |
/**
|
235 |
* Method getValidator
|
236 |
*/
|
237 |
public org.exolab.castor.xml.TypeValidator getValidator()
|
238 |
{ |
239 |
return this; |
240 |
} //-- org.exolab.castor.xml.TypeValidator getValidator()
|
241 |
|
242 |
/**
|
243 |
* Method getXMLName
|
244 |
*/
|
245 |
public java.lang.String getXMLName()
|
246 |
{ |
247 |
return xmlName;
|
248 |
} //-- java.lang.String getXMLName()
|
249 |
|
250 |
} |