svn-gvsig-desktop / trunk / libraries / libIverUtiles / src / com / iver / utiles / xmlEntity / generate / XmlCastorDescriptor.java @ 8515
History | View | Annotate | Download (5.82 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: XmlCastorDescriptor.java 8515 2006-11-06 07:30:00Z jaume $
|
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 com.iver.utiles.xmlEntity.generate; |
49 |
|
50 |
//---------------------------------/
|
51 |
//- Imported classes and packages -/
|
52 |
//---------------------------------/
|
53 |
|
54 |
|
55 |
/**
|
56 |
* Class XmlCastorDescriptor.
|
57 |
*
|
58 |
* @version $Revision: 8515 $ $Date: 2006-11-06 08:30:00 +0100 (Mon, 06 Nov 2006) $
|
59 |
*/
|
60 |
public class XmlCastorDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl { |
61 |
|
62 |
|
63 |
//--------------------------/
|
64 |
//- Class/Member Variables -/
|
65 |
//--------------------------/
|
66 |
|
67 |
/**
|
68 |
* Field nsPrefix
|
69 |
*/
|
70 |
private java.lang.String nsPrefix;
|
71 |
|
72 |
/**
|
73 |
* Field nsURI
|
74 |
*/
|
75 |
private java.lang.String nsURI;
|
76 |
|
77 |
/**
|
78 |
* Field xmlName
|
79 |
*/
|
80 |
private java.lang.String xmlName;
|
81 |
|
82 |
/**
|
83 |
* Field identity
|
84 |
*/
|
85 |
private org.exolab.castor.xml.XMLFieldDescriptor identity;
|
86 |
|
87 |
|
88 |
//----------------/
|
89 |
//- Constructors -/
|
90 |
//----------------/
|
91 |
|
92 |
public XmlCastorDescriptor() {
|
93 |
super();
|
94 |
nsURI = "http://www.gvsig.gva.es";
|
95 |
xmlName = "xmlCastor";
|
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 |
//-- initialize element descriptors
|
105 |
|
106 |
//-- _xmlTagList
|
107 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.utiles.xmlEntity.generate.XmlTag.class, "_xmlTagList", "xml-tag", org.exolab.castor.xml.NodeType.Element); |
108 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
109 |
public java.lang.Object getValue( java.lang.Object object )
|
110 |
throws IllegalStateException |
111 |
{ |
112 |
XmlCastor target = (XmlCastor) object; |
113 |
return target.getXmlTag();
|
114 |
} |
115 |
public void setValue( java.lang.Object object, java.lang.Object value) |
116 |
throws IllegalStateException, IllegalArgumentException |
117 |
{ |
118 |
try {
|
119 |
XmlCastor target = (XmlCastor) object; |
120 |
target.addXmlTag( (com.iver.utiles.xmlEntity.generate.XmlTag) value); |
121 |
} |
122 |
catch (java.lang.Exception ex) {
|
123 |
throw new IllegalStateException(ex.toString()); |
124 |
} |
125 |
} |
126 |
public java.lang.Object newInstance( java.lang.Object parent ) {
|
127 |
return new com.iver.utiles.xmlEntity.generate.XmlTag(); |
128 |
} |
129 |
} ); |
130 |
desc.setHandler(handler); |
131 |
desc.setMultivalued(true);
|
132 |
addFieldDescriptor(desc); |
133 |
|
134 |
//-- validation code for: _xmlTagList
|
135 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
136 |
fieldValidator.setMinOccurs(0);
|
137 |
{ //-- local scope
|
138 |
} |
139 |
desc.setValidator(fieldValidator); |
140 |
} //-- com.iver.utiles.xmlEntity.generate.XmlCastorDescriptor()
|
141 |
|
142 |
|
143 |
//-----------/
|
144 |
//- Methods -/
|
145 |
//-----------/
|
146 |
|
147 |
/**
|
148 |
* Method getAccessMode
|
149 |
*/
|
150 |
public org.exolab.castor.mapping.AccessMode getAccessMode()
|
151 |
{ |
152 |
return null; |
153 |
} //-- org.exolab.castor.mapping.AccessMode getAccessMode()
|
154 |
|
155 |
/**
|
156 |
* Method getExtends
|
157 |
*/
|
158 |
public org.exolab.castor.mapping.ClassDescriptor getExtends()
|
159 |
{ |
160 |
return null; |
161 |
} //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
|
162 |
|
163 |
/**
|
164 |
* Method getIdentity
|
165 |
*/
|
166 |
public org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
167 |
{ |
168 |
return identity;
|
169 |
} //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
170 |
|
171 |
/**
|
172 |
* Method getJavaClass
|
173 |
*/
|
174 |
public java.lang.Class getJavaClass()
|
175 |
{ |
176 |
return com.iver.utiles.xmlEntity.generate.XmlCastor.class;
|
177 |
} //-- java.lang.Class getJavaClass()
|
178 |
|
179 |
/**
|
180 |
* Method getNameSpacePrefix
|
181 |
*/
|
182 |
public java.lang.String getNameSpacePrefix()
|
183 |
{ |
184 |
return nsPrefix;
|
185 |
} //-- java.lang.String getNameSpacePrefix()
|
186 |
|
187 |
/**
|
188 |
* Method getNameSpaceURI
|
189 |
*/
|
190 |
public java.lang.String getNameSpaceURI()
|
191 |
{ |
192 |
return nsURI;
|
193 |
} //-- java.lang.String getNameSpaceURI()
|
194 |
|
195 |
/**
|
196 |
* Method getValidator
|
197 |
*/
|
198 |
public org.exolab.castor.xml.TypeValidator getValidator()
|
199 |
{ |
200 |
return this; |
201 |
} //-- org.exolab.castor.xml.TypeValidator getValidator()
|
202 |
|
203 |
/**
|
204 |
* Method getXMLName
|
205 |
*/
|
206 |
public java.lang.String getXMLName()
|
207 |
{ |
208 |
return xmlName;
|
209 |
} //-- java.lang.String getXMLName()
|
210 |
|
211 |
} |