root / branches / v2_0_0_prep / libraries / libGPE / src / org / gvsig / gpe / parser / GPEContentHandler.java @ 28113
History | View | Annotate | Download (17.9 KB)
1 |
package org.gvsig.gpe.parser; |
---|---|
2 |
|
3 |
import org.gvsig.gpe.warnings.FeatureNotSupportedWarning; |
4 |
|
5 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
6 |
*
|
7 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
8 |
*
|
9 |
* This program is free software; you can redistribute it and/or
|
10 |
* modify it under the terms of the GNU General Public License
|
11 |
* as published by the Free Software Foundation; either version 2
|
12 |
* of the License, or (at your option) any later version.
|
13 |
*
|
14 |
* This program is distributed in the hope that it will be useful,
|
15 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17 |
* GNU General Public License for more details.
|
18 |
*
|
19 |
* You should have received a copy of the GNU General Public License
|
20 |
* along with this program; if not, write to the Free Software
|
21 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
22 |
*
|
23 |
* For more information, contact:
|
24 |
*
|
25 |
* Generalitat Valenciana
|
26 |
* Conselleria d'Infraestructures i Transport
|
27 |
* Av. Blasco Ib??ez, 50
|
28 |
* 46010 VALENCIA
|
29 |
* SPAIN
|
30 |
*
|
31 |
* +34 963862235
|
32 |
* gvsig@gva.es
|
33 |
* www.gvsig.gva.es
|
34 |
*
|
35 |
* or
|
36 |
*
|
37 |
* IVER T.I. S.A
|
38 |
* Salamanca 50
|
39 |
* 46005 Valencia
|
40 |
* Spain
|
41 |
*
|
42 |
* +34 963163400
|
43 |
* dac@iver.es
|
44 |
*/
|
45 |
/* CVS MESSAGES:
|
46 |
*
|
47 |
* $Id: GPEContentHandler.java 202 2007-11-27 12:00:11Z jpiera $
|
48 |
* $Log$
|
49 |
* Revision 1.17 2007/06/20 09:35:37 jorpiell
|
50 |
* Add the javadoc comments
|
51 |
*
|
52 |
* Revision 1.16 2007/06/19 10:34:51 jorpiell
|
53 |
* Add some comments and creates a warning when an operation is not supported
|
54 |
*
|
55 |
* Revision 1.15 2007/06/14 13:50:06 jorpiell
|
56 |
* The schema jar name has been changed
|
57 |
*
|
58 |
* Revision 1.14 2007/06/07 14:52:28 jorpiell
|
59 |
* Add the schema support
|
60 |
*
|
61 |
* Revision 1.13 2007/05/15 12:09:18 jorpiell
|
62 |
* The bbox is linked to the feature
|
63 |
*
|
64 |
* Revision 1.12 2007/05/09 10:25:45 jorpiell
|
65 |
* Add the multiGeometries
|
66 |
*
|
67 |
* Revision 1.11 2007/05/07 12:57:55 jorpiell
|
68 |
* Add some methods to manage the multigeometries
|
69 |
*
|
70 |
* Revision 1.10 2007/04/19 07:23:20 jorpiell
|
71 |
* Add the add methods to teh contenhandler and change the register mode
|
72 |
*
|
73 |
* Revision 1.9 2007/04/18 12:48:16 jorpiell
|
74 |
* The ID attribute is always on the first position
|
75 |
*
|
76 |
* Revision 1.8 2007/04/18 10:46:23 jorpiell
|
77 |
* bbox para from tyhe starLayer method deleted
|
78 |
*
|
79 |
* Revision 1.7 2007/04/18 10:43:24 jorpiell
|
80 |
* Eliminados los Object de la interfaz
|
81 |
*
|
82 |
* Revision 1.6 2007/04/17 07:53:55 jorpiell
|
83 |
* Before to start a new parsing process, the initialize method of the content handlers is throwed
|
84 |
*
|
85 |
* Revision 1.5 2007/04/14 16:06:13 jorpiell
|
86 |
* The writer handler has been updated
|
87 |
*
|
88 |
* Revision 1.4 2007/04/13 13:14:55 jorpiell
|
89 |
* Created the base tests and add some methods to the content handler
|
90 |
*
|
91 |
* Revision 1.3 2007/04/12 17:06:42 jorpiell
|
92 |
* First GML writing tests
|
93 |
*
|
94 |
* Revision 1.2 2007/04/11 13:04:51 jorpiell
|
95 |
* Add the srs param to the addLayer method
|
96 |
*
|
97 |
* Revision 1.1 2007/04/11 08:46:21 csanchez
|
98 |
* Actualizacion protoripo libGPE
|
99 |
*
|
100 |
*
|
101 |
*/
|
102 |
/**
|
103 |
* This class is a common implementation for all
|
104 |
* the application content handlers. It has an attribute
|
105 |
* with the geographical file schema. It has a default
|
106 |
* implementation for all the methods defined by the
|
107 |
* IGPEContentHandler.
|
108 |
* @author Jorge Piera Llodr? (jorge.piera@iver.es)
|
109 |
* @author Carlos S?nchez Peri??n (sanchez_carper@gva.es)
|
110 |
*/
|
111 |
public abstract class GPEContentHandler implements IGPEContentHandler { |
112 |
private IGPEErrorHandler errorHandler = null; |
113 |
|
114 |
/**
|
115 |
* @return the errorHandler
|
116 |
*/
|
117 |
public IGPEErrorHandler getErrorHandler() {
|
118 |
return errorHandler;
|
119 |
} |
120 |
|
121 |
/**
|
122 |
* @param errorHandler the errorHandler to set
|
123 |
*/
|
124 |
public void setErrorHandler(IGPEErrorHandler errorHandler) { |
125 |
this.errorHandler = errorHandler;
|
126 |
} |
127 |
|
128 |
/*
|
129 |
* (non-Javadoc)
|
130 |
* @see org.gvsig.gpe.IGPEContentHandler#addBboxToFeature(java.lang.Object, java.lang.Object)
|
131 |
*/
|
132 |
public void addBboxToFeature(Object bbox, Object feature) { |
133 |
addNotSupportedWarning(FeatureNotSupportedWarning.FEATUEWITHBBOX); |
134 |
} |
135 |
|
136 |
/*
|
137 |
* (non-Javadoc)
|
138 |
* @see org.gvsig.gpe.IGPEContentHandler#addBboxToLayer(java.lang.Object, java.lang.Object)
|
139 |
*/
|
140 |
public void addBboxToLayer(Object bbox, Object layer) { |
141 |
addNotSupportedWarning(FeatureNotSupportedWarning.LAYERWITHBBOX); |
142 |
} |
143 |
|
144 |
/*
|
145 |
* (non-Javadoc)
|
146 |
* @see org.gvsig.gpe.IGPEContentHandler#addDescriptionToLayer(java.lang.String, java.lang.Object)
|
147 |
*/
|
148 |
public void addDescriptionToLayer(String description, Object layer) { |
149 |
addNotSupportedWarning(FeatureNotSupportedWarning.LAYERWITHDESCRIPTION); |
150 |
} |
151 |
|
152 |
/*
|
153 |
* (non-Javadoc)
|
154 |
* @see org.gvsig.gpe.IGPEContentHandler#addElementToFeature(java.lang.Object, java.lang.Object)
|
155 |
*/
|
156 |
public void addElementToFeature(Object element, Object feature) { |
157 |
addNotSupportedWarning(FeatureNotSupportedWarning.FEATUREWITHELEMENTS); |
158 |
} |
159 |
|
160 |
/*
|
161 |
* (non-Javadoc)
|
162 |
* @see org.gvsig.gpe.IGPEContentHandler#addFeatureToLayer(java.lang.Object, java.lang.Object)
|
163 |
*/
|
164 |
public void addFeatureToLayer(Object feature, Object layer) { |
165 |
addNotSupportedWarning(FeatureNotSupportedWarning.LAYERWITHFEATURES); |
166 |
} |
167 |
|
168 |
/*
|
169 |
* (non-Javadoc)
|
170 |
* @see org.gvsig.gpe.IGPEContentHandler#addGeometryToFeature(java.lang.Object, java.lang.Object)
|
171 |
*/
|
172 |
public void addGeometryToFeature(Object geometry, Object feature) { |
173 |
addNotSupportedWarning(FeatureNotSupportedWarning.FEATUREWITHGEOMETRY); |
174 |
} |
175 |
|
176 |
/*
|
177 |
* (non-Javadoc)
|
178 |
* @see org.gvsig.gpe.IGPEContentHandler#addInnerPolygonToPolygon(java.lang.Object, java.lang.Object)
|
179 |
*/
|
180 |
public void addInnerPolygonToPolygon(Object innerPolygon, Object Polygon) { |
181 |
addNotSupportedWarning(FeatureNotSupportedWarning.POLYGONWITHINNERPOLYGON); |
182 |
} |
183 |
|
184 |
/*
|
185 |
* (non-Javadoc)
|
186 |
* @see org.gvsig.gpe.IGPEContentHandler#addNameToFeature(java.lang.String, java.lang.Object)
|
187 |
*/
|
188 |
public void addNameToFeature(String name, Object feature) { |
189 |
addNotSupportedWarning(FeatureNotSupportedWarning.FEATUREWITHNAME); |
190 |
} |
191 |
|
192 |
/*
|
193 |
* (non-Javadoc)
|
194 |
* @see org.gvsig.gpe.IGPEContentHandler#addNameToLayer(java.lang.String, java.lang.Object)
|
195 |
*/
|
196 |
public void addNameToLayer(String name, Object layer) { |
197 |
addNotSupportedWarning(FeatureNotSupportedWarning.LAYERWITHNAME); |
198 |
} |
199 |
|
200 |
/*
|
201 |
* (non-Javadoc)
|
202 |
* @see org.gvsig.gpe.IGPEContentHandler#addParentElementToElement(java.lang.Object, java.lang.Object)
|
203 |
*/
|
204 |
public void addParentElementToElement(Object parent, Object element) { |
205 |
addNotSupportedWarning(FeatureNotSupportedWarning.ELEMENTWITHCHILDREN); |
206 |
} |
207 |
|
208 |
|
209 |
/*
|
210 |
* (non-Javadoc)
|
211 |
* @see org.gvsig.gpe.IGPEContentHandler#addParentLayerToLayer(java.lang.Object, java.lang.Object)
|
212 |
*/
|
213 |
public void addParentLayerToLayer(Object parent, Object layer) { |
214 |
addNotSupportedWarning(FeatureNotSupportedWarning.LAYERWITHCHILDREN); |
215 |
} |
216 |
|
217 |
/*
|
218 |
* (non-Javadoc)
|
219 |
* @see org.gvsig.gpe.IGPEContentHandler#addSrsToLayer(java.lang.String, java.lang.Object)
|
220 |
*/
|
221 |
public void addSrsToLayer(String srs, Object Layer) { |
222 |
addNotSupportedWarning(FeatureNotSupportedWarning.LAYERWITHSRS); |
223 |
} |
224 |
|
225 |
/*
|
226 |
* (non-Javadoc)
|
227 |
* @see org.gvsig.gpe.IGPEContentHandler#endBbox(java.lang.Object)
|
228 |
*/
|
229 |
public void endBbox(Object bbox) { |
230 |
|
231 |
} |
232 |
|
233 |
/*
|
234 |
* (non-Javadoc)
|
235 |
* @see org.gvsig.gpe.IGPEContentHandler#endElement(java.lang.Object)
|
236 |
*/
|
237 |
public void endElement(Object element) { |
238 |
|
239 |
} |
240 |
|
241 |
/*
|
242 |
* (non-Javadoc)
|
243 |
* @see org.gvsig.gpe.IGPEContentHandler#endFeature(java.lang.Object)
|
244 |
*/
|
245 |
public void endFeature(Object feature) { |
246 |
|
247 |
} |
248 |
|
249 |
/*
|
250 |
* (non-Javadoc)
|
251 |
* @see org.gvsig.gpe.IGPEContentHandler#endInnerPolygon(java.lang.Object)
|
252 |
*/
|
253 |
public void endInnerPolygon(Object innerPolygon) { |
254 |
|
255 |
} |
256 |
|
257 |
/*
|
258 |
* (non-Javadoc)
|
259 |
* @see org.gvsig.gpe.IGPEContentHandler#endLayer(java.lang.Object)
|
260 |
*/
|
261 |
public void endLayer(Object layer) { |
262 |
|
263 |
} |
264 |
|
265 |
/*
|
266 |
* (non-Javadoc)
|
267 |
* @see org.gvsig.gpe.IGPEContentHandler#endLineString(java.lang.Object)
|
268 |
*/
|
269 |
public void endLineString(Object lineString) { |
270 |
|
271 |
} |
272 |
|
273 |
/*
|
274 |
* (non-Javadoc)
|
275 |
* @see org.gvsig.gpe.IGPEContentHandler#endLinearRing(java.lang.Object)
|
276 |
*/
|
277 |
public void endLinearRing(Object linearRing) { |
278 |
|
279 |
} |
280 |
|
281 |
/*
|
282 |
* (non-Javadoc)
|
283 |
* @see org.gvsig.gpe.IGPEContentHandler#endPoint(java.lang.Object)
|
284 |
*/
|
285 |
public void endPoint(Object point) { |
286 |
|
287 |
} |
288 |
|
289 |
/*
|
290 |
* (non-Javadoc)
|
291 |
* @see org.gvsig.gpe.IGPEContentHandler#endPolygon(java.lang.Object)
|
292 |
*/
|
293 |
public void endPolygon(Object Polygon) { |
294 |
|
295 |
} |
296 |
|
297 |
/*
|
298 |
* (non-Javadoc)
|
299 |
* @see org.gvsig.gpe.parser.IGPEContentHandler#startBbox(java.lang.String, org.gvsig.gpe.parser.ICoordinateIterator, java.lang.String)
|
300 |
*/
|
301 |
public Object startBbox(String id, ICoordinateIterator coords, String srs) { |
302 |
addNotSupportedWarning(FeatureNotSupportedWarning.BBOXCREATION); |
303 |
return null; |
304 |
} |
305 |
|
306 |
/*
|
307 |
* (non-Javadoc)
|
308 |
* @see org.gvsig.gpe.parser.IGPEContentHandler#startElement(java.lang.String, java.lang.String, java.lang.Object, org.gvsig.gpe.parser.IAttributesIterator, java.lang.Object)
|
309 |
*/
|
310 |
public Object startElement(String namespace, String name, Object value, IAttributesIterator attributes,Object parentElement) { |
311 |
addNotSupportedWarning(FeatureNotSupportedWarning.ELEMENTCREATION); |
312 |
return null; |
313 |
} |
314 |
|
315 |
/*
|
316 |
* (non-Javadoc)
|
317 |
* @see org.gvsig.gpe.parser.IGPEContentHandler#startFeature(java.lang.String, java.lang.String, java.lang.String, org.gvsig.gpe.parser.IAttributesIterator, java.lang.Object)
|
318 |
*/
|
319 |
public Object startFeature(String id, String namespace, String name, IAttributesIterator attributes, Object layer) { |
320 |
addNotSupportedWarning(FeatureNotSupportedWarning.FEATURECREATION); |
321 |
return null; |
322 |
} |
323 |
|
324 |
/*
|
325 |
* (non-Javadoc)
|
326 |
* @see org.gvsig.gpe.parser.IGPEContentHandler#startInnerPolygon(java.lang.String, org.gvsig.gpe.parser.ICoordinateIterator, java.lang.String)
|
327 |
*/
|
328 |
public Object startInnerPolygon(String id, ICoordinateIterator coords, String srs) { |
329 |
addNotSupportedWarning(FeatureNotSupportedWarning.INNERBOUNDARYCREATION); |
330 |
return null; |
331 |
} |
332 |
|
333 |
/*
|
334 |
* (non-Javadoc)
|
335 |
* @see org.gvsig.gpe.parser.IGPEContentHandler#startLayer(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, org.gvsig.gpe.parser.IAttributesIterator, java.lang.Object, java.lang.Object)
|
336 |
*/
|
337 |
public Object startLayer(String id, String namespace, String name, String description, String srs, IAttributesIterator attributes, Object parentLayer, Object bBox) { |
338 |
addNotSupportedWarning(FeatureNotSupportedWarning.LAYERCREATION); |
339 |
return null; |
340 |
} |
341 |
|
342 |
/*
|
343 |
* (non-Javadoc)
|
344 |
* @see org.gvsig.gpe.parser.IGPEContentHandler#startLineString(java.lang.String, org.gvsig.gpe.parser.ICoordinateIterator, java.lang.String)
|
345 |
*/
|
346 |
public Object startLineString(String id, ICoordinateIterator coords, String srs) { |
347 |
addNotSupportedWarning(FeatureNotSupportedWarning.LINESTRINGCREATION); |
348 |
return null; |
349 |
} |
350 |
|
351 |
/*
|
352 |
* (non-Javadoc)
|
353 |
* @see org.gvsig.gpe.parser.IGPEContentHandler#startLinearRing(java.lang.String, org.gvsig.gpe.parser.ICoordinateIterator, java.lang.String)
|
354 |
*/
|
355 |
public Object startLinearRing(String id, ICoordinateIterator coords, String srs) { |
356 |
addNotSupportedWarning(FeatureNotSupportedWarning.LINEARRINGCREATION); |
357 |
return null; |
358 |
} |
359 |
|
360 |
/*
|
361 |
* (non-Javadoc)
|
362 |
* @see org.gvsig.gpe.parser.IGPEContentHandler#startPoint(java.lang.String, org.gvsig.gpe.parser.ICoordinateIterator, java.lang.String)
|
363 |
*/
|
364 |
public Object startPoint(String id, ICoordinateIterator coords, String srs) { |
365 |
addNotSupportedWarning(FeatureNotSupportedWarning.POINTCREATION); |
366 |
return null; |
367 |
} |
368 |
|
369 |
|
370 |
/*
|
371 |
* (non-Javadoc)
|
372 |
* @see org.gvsig.gpe.parser.IGPEContentHandler#startPolygon(java.lang.String, org.gvsig.gpe.parser.ICoordinateIterator, java.lang.String)
|
373 |
*/
|
374 |
public Object startPolygon(String id, ICoordinateIterator coords, String srs) { |
375 |
addNotSupportedWarning(FeatureNotSupportedWarning.POLYGONCREATION); |
376 |
return null; |
377 |
} |
378 |
|
379 |
/*
|
380 |
* (non-Javadoc)
|
381 |
* @see org.gvsig.gpe.IGPEContentHandler#addGeometryToMultiGeometry(java.lang.Object, java.lang.Object)
|
382 |
*/
|
383 |
public void addGeometryToMultiGeometry(Object geometry, Object multiGeometry) { |
384 |
|
385 |
} |
386 |
|
387 |
/*
|
388 |
* (non-Javadoc)
|
389 |
* @see org.gvsig.gpe.IGPEContentHandlerSFP0#addCurveToMultiCurve(java.lang.Object, java.lang.Object)
|
390 |
*/
|
391 |
public void addCurveToMultiCurve(Object curve, Object multiCurve) { |
392 |
|
393 |
} |
394 |
|
395 |
/*
|
396 |
* (non-Javadoc)
|
397 |
* @see org.gvsig.gpe.IGPEContentHandlerSFP0#startMultiCurve(java.lang.String, java.lang.String)
|
398 |
*/
|
399 |
public Object startMultiCurve(String id, String srs) { |
400 |
addNotSupportedWarning(FeatureNotSupportedWarning.MULTICURVECREATION); |
401 |
return null; |
402 |
} |
403 |
|
404 |
/*
|
405 |
* (non-Javadoc)
|
406 |
* @see org.gvsig.gpe.IGPEContentHandlerSFP0#endMultiCurve(java.lang.Object)
|
407 |
*/
|
408 |
public void endMultiCurve(Object multiCurve) { |
409 |
|
410 |
} |
411 |
|
412 |
|
413 |
public Object startCurve(String id, ICoordinateIterator coords, String srs){ |
414 |
addNotSupportedWarning(FeatureNotSupportedWarning.CURVECREATION); |
415 |
return null; |
416 |
} |
417 |
|
418 |
/*
|
419 |
* (non-Javadoc)
|
420 |
* @see org.gvsig.gpe.IGPEContentHandlerSFP0#endCurve(java.lang.Object)
|
421 |
*/
|
422 |
public void endCurve(Object Curve) { |
423 |
|
424 |
} |
425 |
|
426 |
/*
|
427 |
* (non-Javadoc)
|
428 |
* @see org.gvsig.gpe.IGPEContentHandler#addLineStringToMultiLineString(java.lang.Object, java.lang.Object)
|
429 |
*/
|
430 |
public void addLineStringToMultiLineString(Object lineString, Object multiLineString) { |
431 |
|
432 |
} |
433 |
|
434 |
/*
|
435 |
* (non-Javadoc)
|
436 |
* @see org.gvsig.gpe.IGPEContentHandler#addPointToMultiPoint(java.lang.Object, java.lang.Object)
|
437 |
*/
|
438 |
public void addPointToMultiPoint(Object point, Object multiPoint) { |
439 |
|
440 |
} |
441 |
|
442 |
/*
|
443 |
* (non-Javadoc)
|
444 |
* @see org.gvsig.gpe.IGPEContentHandler#addPolygonToMultiPolygon(java.lang.Object, java.lang.Object)
|
445 |
*/
|
446 |
public void addPolygonToMultiPolygon(Object polygon, Object multiPolygon) { |
447 |
|
448 |
} |
449 |
|
450 |
/*
|
451 |
* (non-Javadoc)
|
452 |
* @see org.gvsig.gpe.IGPEContentHandler#endMultiGeometry(java.lang.Object)
|
453 |
*/
|
454 |
public void endMultiGeometry(Object multiGeometry) { |
455 |
|
456 |
} |
457 |
|
458 |
/*
|
459 |
* (non-Javadoc)
|
460 |
* @see org.gvsig.gpe.IGPEContentHandler#endMultiLineString(java.lang.Object)
|
461 |
*/
|
462 |
public void endMultiLineString(Object multiLineString) { |
463 |
|
464 |
} |
465 |
|
466 |
/*
|
467 |
* (non-Javadoc)
|
468 |
* @see org.gvsig.gpe.IGPEContentHandler#endMultiPoint(java.lang.Object)
|
469 |
*/
|
470 |
public void endMultiPoint(Object multiPoint) { |
471 |
|
472 |
} |
473 |
|
474 |
/*
|
475 |
* (non-Javadoc)
|
476 |
* @see org.gvsig.gpe.IGPEContentHandler#endMultiPolygon(java.lang.Object)
|
477 |
*/
|
478 |
public void endMultiPolygon(Object multiPolygon) { |
479 |
|
480 |
} |
481 |
|
482 |
/*
|
483 |
* (non-Javadoc)
|
484 |
* @see org.gvsig.gpe.IGPEContentHandler#startMultiGeometry(java.lang.String, java.lang.String)
|
485 |
*/
|
486 |
public Object startMultiGeometry(String id, String srs) { |
487 |
addNotSupportedWarning(FeatureNotSupportedWarning.MULTIGEOMETRYCREATION); |
488 |
return null; |
489 |
} |
490 |
|
491 |
/*
|
492 |
* (non-Javadoc)
|
493 |
* @see org.gvsig.gpe.IGPEContentHandler#startMultiLineString(java.lang.String, java.lang.String)
|
494 |
*/
|
495 |
public Object startMultiLineString(String id, String srs) { |
496 |
addNotSupportedWarning(FeatureNotSupportedWarning.MULTILINESTRINGCREATION); |
497 |
return null; |
498 |
} |
499 |
|
500 |
/*
|
501 |
* (non-Javadoc)
|
502 |
* @see org.gvsig.gpe.IGPEContentHandler#startMultiPoint(java.lang.String, java.lang.String)
|
503 |
*/
|
504 |
public Object startMultiPoint(String id, String srs) { |
505 |
addNotSupportedWarning(FeatureNotSupportedWarning.MULTIPOINTCREATION); |
506 |
return null; |
507 |
} |
508 |
|
509 |
/*
|
510 |
* (non-Javadoc)
|
511 |
* @see org.gvsig.gpe.IGPEContentHandler#startMultiPolygon(java.lang.String, java.lang.String)
|
512 |
*/
|
513 |
public Object startMultiPolygon(String id, String srs) { |
514 |
addNotSupportedWarning(FeatureNotSupportedWarning.MULTIPOLYGONCREATION); |
515 |
return null; |
516 |
} |
517 |
|
518 |
|
519 |
/**
|
520 |
* This method adds a warning message into the ErrorHandler
|
521 |
* to indicate that the application doesn't supports
|
522 |
* the especified objects
|
523 |
* @param objectName
|
524 |
* Object name that is not supported
|
525 |
*/
|
526 |
private void addNotSupportedWarning(String objectName){ |
527 |
if (errorHandler != null){ |
528 |
errorHandler.addWarning(new FeatureNotSupportedWarning(objectName));
|
529 |
} |
530 |
} |
531 |
|
532 |
/* (non-Javadoc)
|
533 |
* @see org.gvsig.gpe.IGPEContentHandlerSFP0#addSegmentToCurve(java.lang.Object, java.lang.Object)
|
534 |
*/
|
535 |
public void addSegmentToCurve(Object segment, Object curve) { |
536 |
|
537 |
} |
538 |
|
539 |
/* (non-Javadoc)
|
540 |
* @see org.gvsig.gpe.IGPEContentHandlerSFP0#startCurve(java.lang.String, java.lang.String)
|
541 |
*/
|
542 |
public Object startCurve(String id, String srs) { |
543 |
addNotSupportedWarning(FeatureNotSupportedWarning.CURVECREATION); |
544 |
return null; |
545 |
} |
546 |
|
547 |
|
548 |
/* (non-Javadoc)
|
549 |
* @see org.gvsig.gpe.parser.IGPEContentHandler#startMetadata(java.lang.String, java.lang.String, org.gvsig.gpe.parser.IAttributesIterator)
|
550 |
*/
|
551 |
public Object startMetadata(String type, String data, |
552 |
IAttributesIterator attributes) { |
553 |
addNotSupportedWarning(FeatureNotSupportedWarning.METADATACREATION); |
554 |
return null; |
555 |
} |
556 |
|
557 |
/* (non-Javadoc)
|
558 |
* @see org.gvsig.gpe.parser.IGPEContentHandler#startTime(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Object, java.lang.Object)
|
559 |
*/
|
560 |
public Object startTime(String name, String description, String type, |
561 |
String time, Object previous, Object next) { |
562 |
addNotSupportedWarning(FeatureNotSupportedWarning.TIMECREATION); |
563 |
return null; |
564 |
} |
565 |
|
566 |
/* (non-Javadoc)
|
567 |
* @see org.gvsig.gpe.parser.IGPEContentHandler#startTime(java.lang.String, java.lang.String)
|
568 |
*/
|
569 |
public Object startTime(String type, String time) { |
570 |
addNotSupportedWarning(FeatureNotSupportedWarning.METADATACREATION); |
571 |
return null; |
572 |
} |
573 |
|
574 |
/* (non-Javadoc)
|
575 |
* @see org.gvsig.gpe.parser.IGPEContentHandler#addMetadataToFeature(java.lang.Object, java.lang.Object)
|
576 |
*/
|
577 |
public void addMetadataToFeature(Object metadata, Object feature) { |
578 |
addNotSupportedWarning(FeatureNotSupportedWarning.FEATUREWITHMETADATA); |
579 |
} |
580 |
|
581 |
/* (non-Javadoc)
|
582 |
* @see org.gvsig.gpe.parser.IGPEContentHandler#addMetadataToMetadata(java.lang.Object, java.lang.Object)
|
583 |
*/
|
584 |
public void addMetadataToMetadata(Object metadata, Object parent) { |
585 |
addNotSupportedWarning(FeatureNotSupportedWarning.METADATAWITHCHILDREN); |
586 |
} |
587 |
|
588 |
/* (non-Javadoc)
|
589 |
* @see org.gvsig.gpe.parser.IGPEContentHandler#addTimeToFeature(java.lang.Object, java.lang.Object)
|
590 |
*/
|
591 |
public void addTimeToFeature(Object time, Object feature) { |
592 |
addNotSupportedWarning(FeatureNotSupportedWarning.FEATUREWITHTIME); |
593 |
} |
594 |
|
595 |
/* (non-Javadoc)
|
596 |
* @see org.gvsig.gpe.parser.IGPEContentHandler#endMetadata(java.lang.Object)
|
597 |
*/
|
598 |
public void endMetadata(Object metadata) { |
599 |
|
600 |
} |
601 |
|
602 |
/* (non-Javadoc)
|
603 |
* @see org.gvsig.gpe.parser.IGPEContentHandler#endTime(java.lang.Object)
|
604 |
*/
|
605 |
public void endTime(Object time) { |
606 |
|
607 |
} |
608 |
} |