root / branches / v1_9_0 / libGPE-GML / src / org / gvsig / gpe / gml / parser / profiles / Gml2BindingProfile.java @ 53
History | View | Annotate | Download (13.5 KB)
1 |
package org.gvsig.gpe.gml.parser.profiles; |
---|---|
2 |
|
3 |
|
4 |
import org.gvsig.gpe.gml.parser.v2.coordinates.CoordTypeIterator; |
5 |
import org.gvsig.gpe.gml.parser.v2.coordinates.CoordinatesTypeIterator; |
6 |
import org.gvsig.gpe.gml.parser.v2.features.ElementTypeBinding; |
7 |
import org.gvsig.gpe.gml.parser.v2.features.FeatureCollectionBinding; |
8 |
import org.gvsig.gpe.gml.parser.v2.features.FeatureMemberTypeBinding; |
9 |
import org.gvsig.gpe.gml.parser.v2.features.FeatureMembersTypeBinding; |
10 |
import org.gvsig.gpe.gml.parser.v2.features.FeatureTypeBinding; |
11 |
import org.gvsig.gpe.gml.parser.v2.geometries.BoundedByTypeBinding; |
12 |
import org.gvsig.gpe.gml.parser.v2.geometries.BoxTypeBinding; |
13 |
import org.gvsig.gpe.gml.parser.v2.geometries.GeometryBinding; |
14 |
import org.gvsig.gpe.gml.parser.v2.geometries.GeometryMemberTypeBinding; |
15 |
import org.gvsig.gpe.gml.parser.v2.geometries.GeometryPropertyTypeBinding; |
16 |
import org.gvsig.gpe.gml.parser.v2.geometries.InnerBoundaryIsTypeBinding; |
17 |
import org.gvsig.gpe.gml.parser.v2.geometries.LineStringMemberTypeBinding; |
18 |
import org.gvsig.gpe.gml.parser.v2.geometries.LineStringPropertyTypeBinding; |
19 |
import org.gvsig.gpe.gml.parser.v2.geometries.LineStringTypeBinding; |
20 |
import org.gvsig.gpe.gml.parser.v2.geometries.LinearRingTypeBinding; |
21 |
import org.gvsig.gpe.gml.parser.v2.geometries.MultiGeometryPropertyTypeBinding; |
22 |
import org.gvsig.gpe.gml.parser.v2.geometries.MultiGeometryTypeBinding; |
23 |
import org.gvsig.gpe.gml.parser.v2.geometries.MultiLineStringPropertyTypeBinding; |
24 |
import org.gvsig.gpe.gml.parser.v2.geometries.MultiLineStringTypeBinding; |
25 |
import org.gvsig.gpe.gml.parser.v2.geometries.MultiPointPropertyTypeBinding; |
26 |
import org.gvsig.gpe.gml.parser.v2.geometries.MultiPointTypeBinding; |
27 |
import org.gvsig.gpe.gml.parser.v2.geometries.MultiPolygonPropertyTypeBinding; |
28 |
import org.gvsig.gpe.gml.parser.v2.geometries.MultiPolygonTypeBinding; |
29 |
import org.gvsig.gpe.gml.parser.v2.geometries.OuterBoundaryIsTypeBinding; |
30 |
import org.gvsig.gpe.gml.parser.v2.geometries.PointMemberTypeBinding; |
31 |
import org.gvsig.gpe.gml.parser.v2.geometries.PointPropertyTypeBinding; |
32 |
import org.gvsig.gpe.gml.parser.v2.geometries.PointTypeBinding; |
33 |
import org.gvsig.gpe.gml.parser.v2.geometries.PolygonMemberTypeBinding; |
34 |
import org.gvsig.gpe.gml.parser.v2.geometries.PolygonPropertyTypeBinding; |
35 |
import org.gvsig.gpe.gml.parser.v2.geometries.PolygonTypeBinding; |
36 |
|
37 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
38 |
*
|
39 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
40 |
*
|
41 |
* This program is free software; you can redistribute it and/or
|
42 |
* modify it under the terms of the GNU General Public License
|
43 |
* as published by the Free Software Foundation; either version 2
|
44 |
* of the License, or (at your option) any later version.
|
45 |
*
|
46 |
* This program is distributed in the hope that it will be useful,
|
47 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
48 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
49 |
* GNU General Public License for more details.
|
50 |
*
|
51 |
* You should have received a copy of the GNU General Public License
|
52 |
* along with this program; if not, write to the Free Software
|
53 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
54 |
*
|
55 |
* For more information, contact:
|
56 |
*
|
57 |
* Generalitat Valenciana
|
58 |
* Conselleria d'Infraestructures i Transport
|
59 |
* Av. Blasco Ib??ez, 50
|
60 |
* 46010 VALENCIA
|
61 |
* SPAIN
|
62 |
*
|
63 |
* +34 963862235
|
64 |
* gvsig@gva.es
|
65 |
* www.gvsig.gva.es
|
66 |
*
|
67 |
* or
|
68 |
*
|
69 |
* IVER T.I. S.A
|
70 |
* Salamanca 50
|
71 |
* 46005 Valencia
|
72 |
* Spain
|
73 |
*
|
74 |
* +34 963163400
|
75 |
* dac@iver.es
|
76 |
*/
|
77 |
/* CVS MESSAGES:
|
78 |
*
|
79 |
* $Id$
|
80 |
* $Log$
|
81 |
*
|
82 |
*/
|
83 |
/**
|
84 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es)
|
85 |
*/
|
86 |
public class Gml2BindingProfile extends DefaultBindingProfile { |
87 |
FeatureCollectionBinding featureCollectionBinding = new FeatureCollectionBinding();
|
88 |
ElementTypeBinding elementTypeBinding = new ElementTypeBinding();
|
89 |
GeometryBinding geometryBinding = new GeometryBinding();
|
90 |
GeometryPropertyTypeBinding geometryPropertyTypeBinding = new GeometryPropertyTypeBinding();
|
91 |
PointPropertyTypeBinding pointPropertyTypeBinding = new PointPropertyTypeBinding();
|
92 |
LineStringPropertyTypeBinding lineStringPropertyTypeBinding = new LineStringPropertyTypeBinding();
|
93 |
PolygonPropertyTypeBinding polygonPropertyTypeBinding = new PolygonPropertyTypeBinding();
|
94 |
MultiPointPropertyTypeBinding multiPointPropertyTypeBinding = new MultiPointPropertyTypeBinding();
|
95 |
MultiLineStringPropertyTypeBinding multiLineStringPropertyTypeBinding = new MultiLineStringPropertyTypeBinding();
|
96 |
MultiPolygonPropertyTypeBinding multiPolygonPropertyTypeBinding = new MultiPolygonPropertyTypeBinding();
|
97 |
MultiGeometryPropertyTypeBinding multiGeometryPropertyTypeBinding = new MultiGeometryPropertyTypeBinding();
|
98 |
BoundedByTypeBinding boundedByTypeBinding = new BoundedByTypeBinding();
|
99 |
FeatureMemberTypeBinding featureMemberTypeBinding = new FeatureMemberTypeBinding();
|
100 |
FeatureMembersTypeBinding featureMembersTypeBinding = new FeatureMembersTypeBinding();
|
101 |
FeatureTypeBinding featureTypeBinding = new FeatureTypeBinding();
|
102 |
BoxTypeBinding boxTypeBinding = new BoxTypeBinding();
|
103 |
CoordinatesTypeIterator coordinatesTypeIterator = new CoordinatesTypeIterator();
|
104 |
CoordTypeIterator coordTypeIterator = new CoordTypeIterator();
|
105 |
PointMemberTypeBinding pointMemberTypeBinding = new PointMemberTypeBinding();
|
106 |
PointTypeBinding pointTypeBinding = new PointTypeBinding();
|
107 |
LineStringMemberTypeBinding lineStringMemberTypeBinding = new LineStringMemberTypeBinding();
|
108 |
LineStringTypeBinding lineStringTypeBinding = new LineStringTypeBinding();
|
109 |
LinearRingTypeBinding linearRingTypeBinding = new LinearRingTypeBinding();
|
110 |
PolygonMemberTypeBinding polygonMemberTypeBinding = new PolygonMemberTypeBinding();
|
111 |
PolygonTypeBinding polygonTypeBinding = new PolygonTypeBinding();
|
112 |
GeometryMemberTypeBinding geometryMemberTypeBinding = new GeometryMemberTypeBinding();
|
113 |
MultiPointTypeBinding multiPointTypeBinding = new MultiPointTypeBinding();
|
114 |
MultiLineStringTypeBinding multiLineStringTypeBinding = new MultiLineStringTypeBinding();
|
115 |
MultiPolygonTypeBinding multiPolygonTypeBinding = new MultiPolygonTypeBinding();
|
116 |
MultiGeometryTypeBinding multiGeometryTypeBinding = new MultiGeometryTypeBinding();
|
117 |
OuterBoundaryIsTypeBinding outerBoundaryIsTypeBinding = new OuterBoundaryIsTypeBinding();
|
118 |
InnerBoundaryIsTypeBinding innerBoundaryIsTypeBinding = new InnerBoundaryIsTypeBinding();
|
119 |
|
120 |
/*
|
121 |
* (non-Javadoc)
|
122 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getFeatureCollectionBinding()
|
123 |
*/
|
124 |
public FeatureCollectionBinding getFeatureCollectionBinding(){
|
125 |
return featureCollectionBinding;
|
126 |
} |
127 |
|
128 |
/*
|
129 |
* (non-Javadoc)
|
130 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getElementTypeBinding()
|
131 |
*/
|
132 |
public ElementTypeBinding getElementTypeBinding(){
|
133 |
return elementTypeBinding;
|
134 |
} |
135 |
|
136 |
/*
|
137 |
* (non-Javadoc)
|
138 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getGeometryBinding()
|
139 |
*/
|
140 |
public GeometryBinding getGeometryBinding() {
|
141 |
return geometryBinding;
|
142 |
} |
143 |
|
144 |
/*
|
145 |
* (non-Javadoc)
|
146 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getGeometryPropertyTypeBinding()
|
147 |
*/
|
148 |
public GeometryPropertyTypeBinding getGeometryPropertyTypeBinding() {
|
149 |
return geometryPropertyTypeBinding;
|
150 |
} |
151 |
|
152 |
/*
|
153 |
* (non-Javadoc)
|
154 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getLineStringPropertyTypeBinding()
|
155 |
*/
|
156 |
public LineStringPropertyTypeBinding getLineStringPropertyTypeBinding() {
|
157 |
return lineStringPropertyTypeBinding;
|
158 |
} |
159 |
|
160 |
/*
|
161 |
* (non-Javadoc)
|
162 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getMultiGeometryPropertyTypeBinding()
|
163 |
*/
|
164 |
public MultiGeometryPropertyTypeBinding getMultiGeometryPropertyTypeBinding() {
|
165 |
return multiGeometryPropertyTypeBinding;
|
166 |
} |
167 |
|
168 |
/*
|
169 |
* (non-Javadoc)
|
170 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getMultiLineStringPropertyTypeBinding()
|
171 |
*/
|
172 |
public MultiLineStringPropertyTypeBinding getMultiLineStringPropertyTypeBinding() {
|
173 |
return multiLineStringPropertyTypeBinding;
|
174 |
} |
175 |
|
176 |
/*
|
177 |
* (non-Javadoc)
|
178 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getMultiPointPropertyTypeBinding()
|
179 |
*/
|
180 |
public MultiPointPropertyTypeBinding getMultiPointPropertyTypeBinding() {
|
181 |
return multiPointPropertyTypeBinding ;
|
182 |
} |
183 |
|
184 |
/*
|
185 |
* (non-Javadoc)
|
186 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getMultiPolygonPropertyTypeBinding()
|
187 |
*/
|
188 |
public MultiPolygonPropertyTypeBinding getMultiPolygonPropertyTypeBinding() {
|
189 |
return multiPolygonPropertyTypeBinding;
|
190 |
} |
191 |
|
192 |
/*
|
193 |
* (non-Javadoc)
|
194 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getPointPropertyTypeBinding()
|
195 |
*/
|
196 |
public PointPropertyTypeBinding getPointPropertyTypeBinding() {
|
197 |
return pointPropertyTypeBinding;
|
198 |
} |
199 |
|
200 |
/*
|
201 |
* (non-Javadoc)
|
202 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getPolygonPropertyTypeBinding()
|
203 |
*/
|
204 |
public PolygonPropertyTypeBinding getPolygonPropertyTypeBinding() {
|
205 |
return polygonPropertyTypeBinding;
|
206 |
} |
207 |
|
208 |
/*
|
209 |
* (non-Javadoc)
|
210 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getBoundedByTypeBinding()
|
211 |
*/
|
212 |
public BoundedByTypeBinding getBoundedByTypeBinding() {
|
213 |
return boundedByTypeBinding;
|
214 |
} |
215 |
|
216 |
/*
|
217 |
* (non-Javadoc)
|
218 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getFeatureMemberTypeBinding()
|
219 |
*/
|
220 |
public FeatureMemberTypeBinding getFeatureMemberTypeBinding() {
|
221 |
return featureMemberTypeBinding;
|
222 |
} |
223 |
|
224 |
/*
|
225 |
* (non-Javadoc)
|
226 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getFeatureTypeBinding()
|
227 |
*/
|
228 |
public FeatureTypeBinding getFeatureTypeBinding() {
|
229 |
return featureTypeBinding;
|
230 |
} |
231 |
|
232 |
/*
|
233 |
* (non-Javadoc)
|
234 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getBoxTypeBinding()
|
235 |
*/
|
236 |
public BoxTypeBinding getBoxTypeBinding() {
|
237 |
return boxTypeBinding;
|
238 |
} |
239 |
|
240 |
/*
|
241 |
* (non-Javadoc)
|
242 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getCoordinatesTypeBinding()
|
243 |
*/
|
244 |
public CoordinatesTypeIterator getCoordinatesTypeBinding() {
|
245 |
return coordinatesTypeIterator;
|
246 |
} |
247 |
|
248 |
/*
|
249 |
* (non-Javadoc)
|
250 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getCoordTypeBinding()
|
251 |
*/
|
252 |
public CoordTypeIterator getCoordTypeBinding() {
|
253 |
return coordTypeIterator;
|
254 |
} |
255 |
|
256 |
/*
|
257 |
* (non-Javadoc)
|
258 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getGeometryMemberTypeBinding()
|
259 |
*/
|
260 |
public GeometryMemberTypeBinding getGeometryMemberTypeBinding() {
|
261 |
return geometryMemberTypeBinding;
|
262 |
} |
263 |
|
264 |
/*
|
265 |
* (non-Javadoc)
|
266 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getLineStringMemberTypeBinding()
|
267 |
*/
|
268 |
public LineStringMemberTypeBinding getLineStringMemberTypeBinding() {
|
269 |
return lineStringMemberTypeBinding;
|
270 |
} |
271 |
|
272 |
/*
|
273 |
* (non-Javadoc)
|
274 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getLineStringTypeBinding()
|
275 |
*/
|
276 |
public LineStringTypeBinding getLineStringTypeBinding() {
|
277 |
return lineStringTypeBinding;
|
278 |
} |
279 |
|
280 |
/*
|
281 |
* (non-Javadoc)
|
282 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getLinearRingTypeBinding()
|
283 |
*/
|
284 |
public LinearRingTypeBinding getLinearRingTypeBinding() {
|
285 |
return linearRingTypeBinding;
|
286 |
} |
287 |
|
288 |
/*
|
289 |
* (non-Javadoc)
|
290 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getMultiGeometryTypeBinding()
|
291 |
*/
|
292 |
public MultiGeometryTypeBinding getMultiGeometryTypeBinding() {
|
293 |
return multiGeometryTypeBinding;
|
294 |
} |
295 |
|
296 |
/*
|
297 |
* (non-Javadoc)
|
298 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getMultiLineStringTypeBinding()
|
299 |
*/
|
300 |
public MultiLineStringTypeBinding getMultiLineStringTypeBinding() {
|
301 |
return multiLineStringTypeBinding;
|
302 |
} |
303 |
|
304 |
/*
|
305 |
* (non-Javadoc)
|
306 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getMultiPointTypeBinding()
|
307 |
*/
|
308 |
public MultiPointTypeBinding getMultiPointTypeBinding() {
|
309 |
return multiPointTypeBinding;
|
310 |
} |
311 |
|
312 |
/*
|
313 |
* (non-Javadoc)
|
314 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getMultiPolygonTypeBinding()
|
315 |
*/
|
316 |
public MultiPolygonTypeBinding getMultiPolygonTypeBinding() {
|
317 |
return multiPolygonTypeBinding;
|
318 |
} |
319 |
|
320 |
/*
|
321 |
* (non-Javadoc)
|
322 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getPointMemberTypeBinding()
|
323 |
*/
|
324 |
public PointMemberTypeBinding getPointMemberTypeBinding() {
|
325 |
return pointMemberTypeBinding;
|
326 |
} |
327 |
|
328 |
/*
|
329 |
* (non-Javadoc)
|
330 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getPointTypeBinding()
|
331 |
*/
|
332 |
public PointTypeBinding getPointTypeBinding() {
|
333 |
return pointTypeBinding;
|
334 |
} |
335 |
|
336 |
/*
|
337 |
* (non-Javadoc)
|
338 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getPolygonMemberTypeBinding()
|
339 |
*/
|
340 |
public PolygonMemberTypeBinding getPolygonMemberTypeBinding() {
|
341 |
return polygonMemberTypeBinding;
|
342 |
} |
343 |
|
344 |
/*
|
345 |
* (non-Javadoc)
|
346 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getPolygonTypeBinding()
|
347 |
*/
|
348 |
public PolygonTypeBinding getPolygonTypeBinding() {
|
349 |
return polygonTypeBinding;
|
350 |
} |
351 |
|
352 |
|
353 |
/*
|
354 |
* (non-Javadoc)
|
355 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getOuterBoundaryIsTypeBinding()
|
356 |
*/
|
357 |
public OuterBoundaryIsTypeBinding getOuterBoundaryIsTypeBinding() {
|
358 |
return outerBoundaryIsTypeBinding;
|
359 |
} |
360 |
|
361 |
/*
|
362 |
* (non-Javadoc)
|
363 |
* @see org.gvsig.gpe.gml.profiles.IProfile#getInnerBoundaryIsTypeBinding()
|
364 |
*/
|
365 |
public InnerBoundaryIsTypeBinding getInnerBoundaryIsTypeBinding() {
|
366 |
return innerBoundaryIsTypeBinding;
|
367 |
} |
368 |
|
369 |
/*
|
370 |
* (non-Javadoc)
|
371 |
* @see org.gvsig.gpe.gml.parser.profiles.IBindingProfile#getFeatureMembersTypeBinding()
|
372 |
*/
|
373 |
public FeatureMembersTypeBinding getFeatureMembersTypeBinding() {
|
374 |
return featureMembersTypeBinding;
|
375 |
} |
376 |
} |
377 |
|