Revision 484 org.gvsig.gpe/library/trunk/org.gvsig.gpe/org.gvsig.gpe.lib/org.gvsig.gpe.lib.api/src/main/java/org/gvsig/gpe/lib/api/parser/IGPEContentHandler.java
IGPEContentHandler.java | ||
---|---|---|
59 | 59 |
* @author Carlos S?nchez Peri??n (sanchez_carper@gva.es) |
60 | 60 |
*/ |
61 | 61 |
public interface IGPEContentHandler extends IGPEContentHandlerSFP0{ |
62 |
|
|
62 |
|
|
63 | 63 |
/** |
64 |
* This method is thrown when the parser find a new
|
|
64 |
* This method is thrown when the parser find a new |
|
65 | 65 |
* bounding box. |
66 | 66 |
* @param id |
67 | 67 |
* Bounding box identifier |
... | ... | |
74 | 74 |
* a bounding box |
75 | 75 |
*/ |
76 | 76 |
public Object startBbox(String id, ICoordinateIterator coords, String srs); |
77 |
|
|
77 |
|
|
78 | 78 |
/** |
79 | 79 |
* This method indicates that the parser thas finished to |
80 | 80 |
* parse the bounding box. |
... | ... | |
83 | 83 |
* bounding box |
84 | 84 |
*/ |
85 | 85 |
public void endBbox(Object bbox); |
86 |
|
|
86 |
|
|
87 | 87 |
/** |
88 | 88 |
* It is thrown every time that a new layer is detected. |
89 | 89 |
* @param id |
... | ... | |
105 | 105 |
* @return |
106 | 106 |
* The consumer application object that represents a layer |
107 | 107 |
*/ |
108 |
public Object startLayer(String id, String namespace, String name, String description,
|
|
108 |
public Object startLayer(String id, String namespace, String name, String description, |
|
109 | 109 |
String srs, IAttributesIterator attributes, Object parentLayer, Object bBox); |
110 | 110 |
|
111 | 111 |
/** |
... | ... | |
114 | 114 |
* The consumer application object that represents a layer |
115 | 115 |
*/ |
116 | 116 |
public void endLayer(Object layer); |
117 |
|
|
117 |
|
|
118 | 118 |
/** |
119 |
* It adds a name to one layer that has been previously
|
|
119 |
* It adds a name to one layer that has been previously |
|
120 | 120 |
* created using the startLayer method. |
121 | 121 |
* @param name |
122 | 122 |
* Layer name |
... | ... | |
124 | 124 |
* The consumer application object that represents a layer |
125 | 125 |
*/ |
126 | 126 |
public void addNameToLayer(String name, Object layer); |
127 |
|
|
127 |
|
|
128 | 128 |
/** |
129 |
* It adds the description to one layer that has been previously
|
|
129 |
* It adds the description to one layer that has been previously |
|
130 | 130 |
* created using the startLayer method. |
131 | 131 |
* @param description |
132 | 132 |
* Layer description |
... | ... | |
134 | 134 |
* The consumer application object that represents a layer |
135 | 135 |
*/ |
136 | 136 |
public void addDescriptionToLayer(String description, Object layer); |
137 |
|
|
137 |
|
|
138 | 138 |
/** |
139 |
* It adds a spatial reference system to one layer that
|
|
139 |
* It adds a spatial reference system to one layer that |
|
140 | 140 |
* has been previously created using the startLayer method. |
141 | 141 |
* @param srs |
142 | 142 |
* Spatial reference system |
... | ... | |
144 | 144 |
* The consumer application object that represents a layer |
145 | 145 |
*/ |
146 | 146 |
public void addSrsToLayer(String srs, Object Layer); |
147 |
|
|
147 |
|
|
148 | 148 |
/** |
149 | 149 |
* It establish the relationship parent-child between two layers |
150 | 150 |
* that have been previously created using the startLayer method. |
... | ... | |
154 | 154 |
* The consumer application object that represents the child layer |
155 | 155 |
*/ |
156 | 156 |
public void addParentLayerToLayer(Object parent, Object layer); |
157 |
|
|
157 |
|
|
158 | 158 |
/** |
159 |
* It adds a bounding box to one layer that has been previously
|
|
159 |
* It adds a bounding box to one layer that has been previously |
|
160 | 160 |
* created using the startLayer method. |
161 | 161 |
* @param bbox |
162 | 162 |
* Layer bounding box |
... | ... | |
164 | 164 |
* The consumer application object that represents a layer |
165 | 165 |
*/ |
166 | 166 |
public void addBboxToLayer(Object bbox, Object layer); |
167 |
|
|
167 |
|
|
168 | 168 |
/** |
169 | 169 |
* It is thrown when the parser has found a new feature. |
170 | 170 |
* @param id |
... | ... | |
181 | 181 |
* Consumer application object that represents a feature |
182 | 182 |
*/ |
183 | 183 |
public Object startFeature(String id, String namespace, String name, IAttributesIterator attributes, Object layer); |
184 |
|
|
184 |
|
|
185 | 185 |
/** |
186 | 186 |
* This method is thrown when the parser has finished to |
187 | 187 |
* parse a feature. |
... | ... | |
189 | 189 |
* Consumer application object that represents a feature |
190 | 190 |
*/ |
191 | 191 |
public void endFeature(Object feature); |
192 |
|
|
192 |
|
|
193 | 193 |
/** |
194 | 194 |
* This method adds a name to one layer that has been |
195 |
* previously created using the startFeature method.
|
|
195 |
* previously created using the startFeature method. |
|
196 | 196 |
* @param name |
197 | 197 |
* Feature name |
198 | 198 |
* @param feature |
199 | 199 |
* Consumer application object that represents a feature |
200 | 200 |
*/ |
201 |
public void addNameToFeature(String name, Object feature);
|
|
201 |
public void addNameToFeature(String name, Object feature); |
|
202 | 202 |
|
203 | 203 |
/** |
204 |
* This method adds a feature to one layer that has been
|
|
205 |
* previously created using the startLayer method.
|
|
204 |
* This method adds a feature to one layer that has been |
|
205 |
* previously created using the startLayer method. |
|
206 | 206 |
* @param feature |
207 | 207 |
* Consumer application object that represents a feature |
208 | 208 |
* @param layer |
209 | 209 |
* Consumer application object that represents a layer |
210 | 210 |
*/ |
211 | 211 |
public void addFeatureToLayer(Object feature, Object layer); |
212 |
|
|
212 |
|
|
213 | 213 |
/** |
214 | 214 |
* It is thrown when the parser has found a new element |
215 | 215 |
* @param namespace |
... | ... | |
223 | 223 |
* @param parentElement |
224 | 224 |
* The parent of this element (if exists) |
225 | 225 |
* @return |
226 |
* Consumer application object that represents an element
|
|
226 |
* Consumer application object that represents an element |
|
227 | 227 |
*/ |
228 | 228 |
public Object startElement(String namespace, String name, Object value, |
229 | 229 |
IAttributesIterator attributes, Object parentElement); |
230 |
|
|
230 |
|
|
231 | 231 |
/** |
232 |
* This method is thrown when the parser find the end
|
|
232 |
* This method is thrown when the parser find the end |
|
233 | 233 |
* of an element. |
234 | 234 |
* @param element |
235 |
* Consumer application object that represents an element
|
|
235 |
* Consumer application object that represents an element |
|
236 | 236 |
*/ |
237 | 237 |
public void endElement(Object element); |
238 |
|
|
238 |
|
|
239 | 239 |
/** |
240 | 240 |
* It is thrown to establish a relationship parent-child |
241 | 241 |
* between two elements. |
242 | 242 |
* @param parent |
243 |
* Consumer application object that represents the parent element
|
|
243 |
* Consumer application object that represents the parent element |
|
244 | 244 |
* @param element |
245 |
* Consumer application object that represents the child element
|
|
245 |
* Consumer application object that represents the child element |
|
246 | 246 |
*/ |
247 | 247 |
public void addParentElementToElement(Object parent, Object element); |
248 |
|
|
248 |
|
|
249 | 249 |
/** |
250 |
* This method adds an element to one feature that has been
|
|
250 |
* This method adds an element to one feature that has been |
|
251 | 251 |
* previously created using the startFeature method |
252 | 252 |
* @param element |
253 |
* Consumer application object that represents an element
|
|
253 |
* Consumer application object that represents an element |
|
254 | 254 |
* @param feature |
255 |
* Consumer application object that represents the feature
|
|
255 |
* Consumer application object that represents the feature |
|
256 | 256 |
*/ |
257 | 257 |
public void addElementToFeature(Object element, Object feature); |
258 |
|
|
258 |
|
|
259 | 259 |
/** |
260 |
* This method indicates that the parser has found a point.
|
|
260 |
* This method indicates that the parser has found a point. |
|
261 | 261 |
* @param id |
262 | 262 |
* Point identifier |
263 | 263 |
* @param coords |
... | ... | |
265 | 265 |
* @param srs |
266 | 266 |
* Spatial reference system |
267 | 267 |
* @return |
268 |
* Consumer application object that represents a point
|
|
268 |
* Consumer application object that represents a point |
|
269 | 269 |
*/ |
270 | 270 |
public Object startPoint(String id, ICoordinateIterator coords, String srs); |
271 |
|
|
271 |
|
|
272 | 272 |
/** |
273 | 273 |
* It is thrown when the point has been completely parsed. |
274 | 274 |
* @param point |
275 |
* Consumer application object that represents a point
|
|
275 |
* Consumer application object that represents a point |
|
276 | 276 |
*/ |
277 | 277 |
public void endPoint(Object point); |
278 |
|
|
278 |
|
|
279 | 279 |
/** |
280 |
* This method indicates that the parser has found a lineString.
|
|
280 |
* This method indicates that the parser has found a lineString. |
|
281 | 281 |
* @param id |
282 | 282 |
* LineString identifier |
283 | 283 |
* @param coords |
... | ... | |
285 | 285 |
* @param srs |
286 | 286 |
* Spatial reference system |
287 | 287 |
* @return |
288 |
* Consumer application object that represents a lineString
|
|
288 |
* Consumer application object that represents a lineString |
|
289 | 289 |
*/ |
290 | 290 |
public Object startLineString( String id, ICoordinateIterator coords, String srs); |
291 |
|
|
291 |
|
|
292 | 292 |
/** |
293 | 293 |
* It is thrown when the lineString has been completely parsed. |
294 | 294 |
* @param lineString |
295 |
* Consumer application object that represents a lineString
|
|
295 |
* Consumer application object that represents a lineString |
|
296 | 296 |
*/ |
297 | 297 |
public void endLineString(Object lineString); |
298 |
|
|
298 |
|
|
299 | 299 |
/** |
300 |
* This method indicates that the parser has found a linearRing.
|
|
300 |
* This method indicates that the parser has found a linearRing. |
|
301 | 301 |
* @param id |
302 | 302 |
* LinearRing identifier |
303 | 303 |
* @param coords |
... | ... | |
305 | 305 |
* @param srs |
306 | 306 |
* Spatial reference system |
307 | 307 |
* @return |
308 |
* Consumer application object that represents a linarRing
|
|
308 |
* Consumer application object that represents a linarRing |
|
309 | 309 |
*/ |
310 | 310 |
public Object startLinearRing(String id, ICoordinateIterator coords, String srs); |
311 |
|
|
311 |
|
|
312 | 312 |
/** |
313 | 313 |
* It is thrown when the linearRing has been completely parsed. |
314 | 314 |
* @param linearRing |
315 |
* Consumer application object that represents a linearRing
|
|
315 |
* Consumer application object that represents a linearRing |
|
316 | 316 |
*/ |
317 | 317 |
public void endLinearRing(Object linearRing); |
318 |
|
|
318 |
|
|
319 | 319 |
/** |
320 |
* This method indicates that the parser has found a polygon.
|
|
320 |
* This method indicates that the parser has found a polygon. |
|
321 | 321 |
* @param id |
322 | 322 |
* Polygon identifier |
323 | 323 |
* @param coords |
... | ... | |
325 | 325 |
* @param srs |
326 | 326 |
* Spatial reference system |
327 | 327 |
* @return |
328 |
* Consumer application object that represents a polygon
|
|
328 |
* Consumer application object that represents a polygon |
|
329 | 329 |
*/ |
330 | 330 |
public Object startPolygon(String id, ICoordinateIterator coords, String srs); |
331 |
|
|
331 |
|
|
332 | 332 |
/** |
333 | 333 |
* It is thrown when the polygon has been completely parsed. |
334 | 334 |
* @param polygon |
335 |
* Consumer application object that represents a polygon
|
|
335 |
* Consumer application object that represents a polygon |
|
336 | 336 |
*/ |
337 |
public void endPolygon(Object polygon);
|
|
338 |
|
|
337 |
public void endPolygon(Object polygon); |
|
338 |
|
|
339 | 339 |
/** |
340 | 340 |
* This method associates a innerPolygon with its polygon |
341 | 341 |
* @param innerPolygon |
342 |
* Consumer application object that represents a innerPolygon
|
|
342 |
* Consumer application object that represents a innerPolygon |
|
343 | 343 |
* @param Polygon |
344 |
* Consumer application object that represents a polygon
|
|
344 |
* Consumer application object that represents a polygon |
|
345 | 345 |
*/ |
346 | 346 |
public void addInnerPolygonToPolygon(Object innerPolygon, Object Polygon); |
347 |
|
|
347 |
|
|
348 | 348 |
/** |
349 |
* This method indicates that the parser has found a InnerPolygon.
|
|
349 |
* This method indicates that the parser has found a InnerPolygon. |
|
350 | 350 |
* @param id |
351 | 351 |
* InnerPolygon identifier |
352 | 352 |
* @param coords |
... | ... | |
354 | 354 |
* @param srs |
355 | 355 |
* Spatial reference system |
356 | 356 |
* @return |
357 |
* Consumer application object that represents a innerPolygon
|
|
357 |
* Consumer application object that represents a innerPolygon |
|
358 | 358 |
*/ |
359 | 359 |
public Object startInnerPolygon(String id, ICoordinateIterator coords, String srs); |
360 |
|
|
360 |
|
|
361 | 361 |
/** |
362 | 362 |
* It is thrown when the innerPolygon has been completely parsed. |
363 | 363 |
* @param innerPolygon |
364 |
* Consumer application object that represents a innerPolygon
|
|
364 |
* Consumer application object that represents a innerPolygon |
|
365 | 365 |
*/ |
366 | 366 |
public void endInnerPolygon(Object innerPolygon); |
367 |
|
|
367 |
|
|
368 | 368 |
/** |
369 |
* This method indicates that the parser has found a multipoint.
|
|
369 |
* This method indicates that the parser has found a multipoint. |
|
370 | 370 |
* @param id |
371 | 371 |
* MultiPoint identifier |
372 | 372 |
* @param srs |
373 | 373 |
* Spatial reference system |
374 | 374 |
* @return |
375 |
* Consumer application object that represents a multiPoint
|
|
375 |
* Consumer application object that represents a multiPoint |
|
376 | 376 |
*/ |
377 | 377 |
public Object startMultiPoint(String id, String srs); |
378 |
|
|
378 |
|
|
379 |
public Object startMultiPoint(String id, String srs, int dimension); |
|
379 | 380 |
/** |
380 | 381 |
* It is thrown when the multiPoint has been completely parsed |
381 | 382 |
* @param multiPoint |
382 | 383 |
* Consumer application object that represents a multiPoint |
383 | 384 |
*/ |
384 | 385 |
public void endMultiPoint(Object multiPoint); |
385 |
|
|
386 |
|
|
386 | 387 |
/** |
387 | 388 |
* It is thrown to add a point to one multiPoint. |
388 | 389 |
* @param point |
... | ... | |
391 | 392 |
* Consumer application object that represents a multiPoint |
392 | 393 |
*/ |
393 | 394 |
public void addPointToMultiPoint(Object point,Object multiPoint); |
394 |
|
|
395 |
|
|
395 | 396 |
/** |
396 |
* This method indicates that the parser has found a multiLineString.
|
|
397 |
* This method indicates that the parser has found a multiLineString. |
|
397 | 398 |
* @param id |
398 | 399 |
* MultiLineString identifier |
399 | 400 |
* @param srs |
400 | 401 |
* Spatial reference system |
401 | 402 |
* @return |
402 |
* Consumer application object that represents a multiLineString
|
|
403 |
* Consumer application object that represents a multiLineString |
|
403 | 404 |
*/ |
404 | 405 |
public Object startMultiLineString(String id, String srs); |
405 |
|
|
406 |
|
|
407 |
public Object startMultiLineString(String id, String srs, int dimension); |
|
408 |
|
|
406 | 409 |
/** |
407 | 410 |
* It is thrown when the multiLineString has been completely parsed |
408 | 411 |
* @param multiLineString |
409 | 412 |
* Consumer application object that represents a multiLineString |
410 | 413 |
*/ |
411 |
public void endMultiLineString(Object multiLineString);
|
|
412 |
|
|
414 |
public void endMultiLineString(Object multiLineString); |
|
415 |
|
|
413 | 416 |
/** |
414 | 417 |
* It is thrown to add a lineString to one lineString. |
415 | 418 |
* @param lineString |
... | ... | |
418 | 421 |
* Consumer application object that represents a multiLineString |
419 | 422 |
*/ |
420 | 423 |
public void addLineStringToMultiLineString(Object lineString,Object multiLineString); |
421 |
|
|
424 |
|
|
422 | 425 |
/** |
423 |
* This method indicates that the parser has found a multiPolygon.
|
|
426 |
* This method indicates that the parser has found a multiPolygon. |
|
424 | 427 |
* @param id |
425 | 428 |
* MultiPolygon identifier |
426 | 429 |
* @param srs |
427 | 430 |
* Spatial reference system |
428 | 431 |
* @return |
429 |
* Consumer application object that represents a multiPolygon
|
|
432 |
* Consumer application object that represents a multiPolygon |
|
430 | 433 |
*/ |
431 | 434 |
public Object startMultiPolygon(String id, String srs); |
432 |
|
|
435 |
|
|
436 |
public Object startMultiPolygon(String id, String srs, int dimension); |
|
437 |
|
|
433 | 438 |
/** |
434 | 439 |
* It is thrown when the multiPolygon has been completely parsed |
435 | 440 |
* @param multiPolygon |
436 | 441 |
* Consumer application object that represents a multiPolygon |
437 | 442 |
*/ |
438 | 443 |
public void endMultiPolygon(Object multiPolygon); |
439 |
|
|
444 |
|
|
440 | 445 |
/** |
441 | 446 |
* It is thrown to add a polygon to one multiPolygon. |
442 | 447 |
* @param polygon |
... | ... | |
445 | 450 |
* Consumer application object that represents a multiPolygon |
446 | 451 |
*/ |
447 | 452 |
public void addPolygonToMultiPolygon(Object polygon,Object multiPolygon); |
448 |
|
|
453 |
|
|
449 | 454 |
/** |
450 |
* This method indicates that the parser has found a multiGeometry.
|
|
455 |
* This method indicates that the parser has found a multiGeometry. |
|
451 | 456 |
* @param id |
452 | 457 |
* MultiGeometry identifier |
453 | 458 |
* @param srs |
... | ... | |
456 | 461 |
* Consumer application object that represents a multiGeometry |
457 | 462 |
*/ |
458 | 463 |
public Object startMultiGeometry(String id, String srs); |
459 |
|
|
464 |
|
|
460 | 465 |
/** |
461 | 466 |
* It is thrown when the multiGeometry has been completely parsed |
462 | 467 |
* @param multiGeometry |
463 | 468 |
* Consumer application object that represents a multiGeometry |
464 | 469 |
*/ |
465 | 470 |
public void endMultiGeometry(Object multiGeometry); |
466 |
|
|
471 |
|
|
467 | 472 |
/** |
468 | 473 |
* It is thrown to add a geometry to one multiGeometry. |
469 | 474 |
* @param geometry |
... | ... | |
472 | 477 |
* Consumer application object that represents a multiGeometry |
473 | 478 |
*/ |
474 | 479 |
public void addGeometryToMultiGeometry(Object geometry,Object multiGeometry); |
475 |
|
|
480 |
|
|
476 | 481 |
/** |
477 | 482 |
* This method adds a bounding box to a feature. |
478 | 483 |
* @param bbox |
... | ... | |
482 | 487 |
* Consumer application object that represents a feature |
483 | 488 |
*/ |
484 | 489 |
public void addBboxToFeature(Object bbox, Object feature); |
485 |
|
|
490 |
|
|
486 | 491 |
/** |
487 |
* This method adds a geometry to a feature.
|
|
492 |
* This method adds a geometry to a feature. |
|
488 | 493 |
* @param geometry |
489 | 494 |
* Consumer application object that represents a geometry |
490 | 495 |
* @param feature |
491 | 496 |
* Consumer application object that represents a feature |
492 | 497 |
*/ |
493 | 498 |
public void addGeometryToFeature(Object geometry, Object feature); |
494 |
|
|
499 |
|
|
495 | 500 |
/** |
496 | 501 |
* It is thrown when the parser has found a new metadata tag |
497 | 502 |
* @param type |
498 | 503 |
* String with the type of metadata, if is a description or any else |
499 | 504 |
* @param data |
500 | 505 |
* String with the value of the data. |
501 |
* @param attributes
|
|
506 |
* @param attributes |
|
502 | 507 |
* Object to pass the Atributtes |
503 | 508 |
* @return |
504 |
* Consumer application object that represents metadata
|
|
509 |
* Consumer application object that represents metadata |
|
505 | 510 |
*/ |
506 | 511 |
public Object startMetadata(String type, String data, IAttributesIterator attributes); |
507 |
|
|
512 |
|
|
508 | 513 |
/** |
509 |
* This method adds metadata to feature.
|
|
514 |
* This method adds metadata to feature. |
|
510 | 515 |
* @param metadata |
511 | 516 |
* Consumer application object that represents metadata |
512 | 517 |
* @param feature |
513 | 518 |
* Consumer application object that represents a feature |
514 | 519 |
*/ |
515 | 520 |
public void addMetadataToFeature(Object metadata, Object feature); |
516 |
|
|
521 |
|
|
517 | 522 |
/** |
518 |
* This method adds metadata to complex metadata.
|
|
523 |
* This method adds metadata to complex metadata. |
|
519 | 524 |
* @param metadata |
520 | 525 |
* Consumer application object that represents metadata |
521 | 526 |
* @param parent |
522 | 527 |
* Consumer application object that represents the complex metadata |
523 | 528 |
*/ |
524 | 529 |
public void addMetadataToMetadata(Object metadata, Object parent); |
525 |
|
|
530 |
|
|
526 | 531 |
/** |
527 | 532 |
* This method is thrown when the parser find the end of the metadata |
528 | 533 |
* of an element. |
529 | 534 |
* @param metadata |
530 |
* Consumer application object that represents metadata
|
|
535 |
* Consumer application object that represents metadata |
|
531 | 536 |
*/ |
532 | 537 |
public void endMetadata(Object metadata); |
533 |
|
|
538 |
|
|
534 | 539 |
/** |
535 | 540 |
* This method is thrown when the parser find the end of and element time tag |
536 | 541 |
* @param time |
537 |
* Consumer application object that represents time
|
|
542 |
* Consumer application object that represents time |
|
538 | 543 |
*/ |
539 | 544 |
public void endTime(Object time); |
540 |
|
|
545 |
|
|
541 | 546 |
/** |
542 | 547 |
* It is thrown when the parser has found a new time tag tag |
543 | 548 |
* @param type |
... | ... | |
549 | 554 |
*/ |
550 | 555 |
public Object startTime(String name, String description, String type, String time, Object previous, Object next); |
551 | 556 |
public Object startTime(String type, String time); |
552 |
|
|
557 |
|
|
553 | 558 |
/** |
554 |
* This method adds time to feature.
|
|
559 |
* This method adds time to feature. |
|
555 | 560 |
* @param time |
556 | 561 |
* Consumer application object that represents time |
557 | 562 |
* @param feature |
Also available in: Unified diff