public abstract class GPEContentHandler extends Object implements IGPEContentHandler
Constructor and Description |
---|
GPEContentHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addBboxToFeature(Object bbox,
Object feature)
This method adds a bounding box to a feature.
|
void |
addBboxToLayer(Object bbox,
Object layer)
It adds a bounding box to one layer that has been previously
created using the startLayer method.
|
void |
addCurveToMultiCurve(Object curve,
Object multiCurve)
It is thrown to add a curve to one multiCurve.
|
void |
addDescriptionToLayer(String description,
Object layer)
It adds the description to one layer that has been previously
created using the startLayer method.
|
void |
addElementToFeature(Object element,
Object feature)
This method adds an element to one feature that has been
previously created using the startFeature method
|
void |
addFeatureToLayer(Object feature,
Object layer)
This method adds a feature to one layer that has been
previously created using the startLayer method.
|
void |
addGeometryToFeature(Object geometry,
Object feature)
This method adds a geometry to a feature.
|
void |
addGeometryToMultiGeometry(Object geometry,
Object multiGeometry)
It is thrown to add a geometry to one multiGeometry.
|
void |
addInnerPolygonToPolygon(Object innerPolygon,
Object Polygon)
This method associates a innerPolygon with its polygon
|
void |
addLineStringToMultiLineString(Object lineString,
Object multiLineString)
It is thrown to add a lineString to one lineString.
|
void |
addMetadataToFeature(Object metadata,
Object feature)
This method adds metadata to feature.
|
void |
addMetadataToMetadata(Object metadata,
Object parent)
This method adds metadata to complex metadata.
|
void |
addNameToFeature(String name,
Object feature)
This method adds a name to one layer that has been
previously created using the startFeature method.
|
void |
addNameToLayer(String name,
Object layer)
It adds a name to one layer that has been previously
created using the startLayer method.
|
void |
addParentElementToElement(Object parent,
Object element)
It is thrown to establish a relationship parent-child
between two elements.
|
void |
addParentLayerToLayer(Object parent,
Object layer)
It establish the relationship parent-child between two layers
that have been previously created using the startLayer method.
|
void |
addPointToMultiPoint(Object point,
Object multiPoint)
It is thrown to add a point to one multiPoint.
|
void |
addPolygonToMultiPolygon(Object polygon,
Object multiPolygon)
It is thrown to add a polygon to one multiPolygon.
|
void |
addSegmentToCurve(Object segment,
Object curve)
It adds a segment to a curve.
|
void |
addSrsToLayer(String srs,
Object Layer)
It adds a spatial reference system to one layer that
has been previously created using the startLayer method.
|
void |
addTimeToFeature(Object time,
Object feature)
This method adds time to feature.
|
void |
endBbox(Object bbox)
This method indicates that the parser thas finished to
parse the bounding box.
|
void |
endCurve(Object Curve)
It is thrown when the Curve has been completely parsed.
|
void |
endElement(Object element)
This method is thrown when the parser find the end
of an element.
|
void |
endFeature(Object feature)
This method is thrown when the parser has finished to
parse a feature.
|
void |
endInnerPolygon(Object innerPolygon)
It is thrown when the innerPolygon has been completely parsed.
|
void |
endLayer(Object layer)
It is thrown when a layer has been finished to parse.
|
void |
endLinearRing(Object linearRing)
It is thrown when the linearRing has been completely parsed.
|
void |
endLineString(Object lineString)
It is thrown when the lineString has been completely parsed.
|
void |
endMetadata(Object metadata)
This method is thrown when the parser find the end of the metadata
of an element.
|
void |
endMultiCurve(Object multiCurve)
It is thrown when the multiCurve has been completely parsed
|
void |
endMultiGeometry(Object multiGeometry)
It is thrown when the multiGeometry has been completely parsed
|
void |
endMultiLineString(Object multiLineString)
It is thrown when the multiLineString has been completely parsed
|
void |
endMultiPoint(Object multiPoint)
It is thrown when the multiPoint has been completely parsed
|
void |
endMultiPolygon(Object multiPolygon)
It is thrown when the multiPolygon has been completely parsed
|
void |
endPoint(Object point)
It is thrown when the point has been completely parsed.
|
void |
endPolygon(Object Polygon)
It is thrown when the polygon has been completely parsed.
|
void |
endTime(Object time)
This method is thrown when the parser find the end of and element time tag
|
IGPEErrorHandler |
getErrorHandler() |
void |
setErrorHandler(IGPEErrorHandler errorHandler) |
Object |
startBbox(String id,
ICoordinateIterator coords,
String srs)
This method is thrown when the parser find a new
bounding box.
|
Object |
startCurve(String id,
ICoordinateIterator coords,
String srs)
This method indicates that the parser has found a curve.
|
Object |
startCurve(String id,
String srs)
This method indicates that the parser has found a curve.
|
Object |
startElement(String namespace,
String name,
Object value,
IAttributesIterator attributes,
Object parentElement)
It is thrown when the parser has found a new element
|
Object |
startFeature(String id,
String namespace,
String name,
IAttributesIterator attributes,
Object layer)
It is thrown when the parser has found a new feature.
|
Object |
startInnerPolygon(String id,
ICoordinateIterator coords,
String srs)
This method indicates that the parser has found a InnerPolygon.
|
Object |
startLayer(String id,
String namespace,
String name,
String description,
String srs,
IAttributesIterator attributes,
Object parentLayer,
Object bBox)
It is thrown every time that a new layer is detected.
|
Object |
startLinearRing(String id,
ICoordinateIterator coords,
String srs)
This method indicates that the parser has found a linearRing.
|
Object |
startLineString(String id,
ICoordinateIterator coords,
String srs)
This method indicates that the parser has found a lineString.
|
Object |
startMetadata(String type,
String data,
IAttributesIterator attributes)
It is thrown when the parser has found a new metadata tag
|
Object |
startMultiCurve(String id,
String srs)
This method indicates that the parser has found a multiCurve.
|
Object |
startMultiGeometry(String id,
String srs)
This method indicates that the parser has found a multiGeometry.
|
Object |
startMultiLineString(String id,
String srs)
This method indicates that the parser has found a multiLineString.
|
Object |
startMultiPoint(String id,
String srs)
This method indicates that the parser has found a multipoint.
|
Object |
startMultiPolygon(String id,
String srs)
This method indicates that the parser has found a multiPolygon.
|
Object |
startPoint(String id,
ICoordinateIterator coords,
String srs)
This method indicates that the parser has found a point.
|
Object |
startPolygon(String id,
ICoordinateIterator coords,
String srs)
This method indicates that the parser has found a polygon.
|
Object |
startTime(String type,
String time) |
Object |
startTime(String name,
String description,
String type,
String time,
Object previous,
Object next)
It is thrown when the parser has found a new time tag tag
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
startMultiLineString, startMultiPoint, startMultiPolygon
startMultiCurve
public IGPEErrorHandler getErrorHandler()
public void setErrorHandler(IGPEErrorHandler errorHandler)
errorHandler
- the errorHandler to setpublic void addBboxToFeature(Object bbox, Object feature)
IGPEContentHandler
addBboxToFeature
in interface IGPEContentHandler
bbox
- Consumer application object that represents a bounding
boxfeature
- Consumer application object that represents a featurepublic void addBboxToLayer(Object bbox, Object layer)
IGPEContentHandler
addBboxToLayer
in interface IGPEContentHandler
bbox
- Layer bounding boxlayer
- The consumer application object that represents a layerpublic void addDescriptionToLayer(String description, Object layer)
IGPEContentHandler
addDescriptionToLayer
in interface IGPEContentHandler
description
- Layer descriptionlayer
- The consumer application object that represents a layerpublic void addElementToFeature(Object element, Object feature)
IGPEContentHandler
addElementToFeature
in interface IGPEContentHandler
element
- Consumer application object that represents an elementfeature
- Consumer application object that represents the featurepublic void addFeatureToLayer(Object feature, Object layer)
IGPEContentHandler
addFeatureToLayer
in interface IGPEContentHandler
feature
- Consumer application object that represents a featurelayer
- Consumer application object that represents a layerpublic void addGeometryToFeature(Object geometry, Object feature)
IGPEContentHandler
addGeometryToFeature
in interface IGPEContentHandler
geometry
- Consumer application object that represents a geometryfeature
- Consumer application object that represents a featurepublic void addInnerPolygonToPolygon(Object innerPolygon, Object Polygon)
IGPEContentHandler
addInnerPolygonToPolygon
in interface IGPEContentHandler
innerPolygon
- Consumer application object that represents a innerPolygonPolygon
- Consumer application object that represents a polygonpublic void addNameToFeature(String name, Object feature)
IGPEContentHandler
addNameToFeature
in interface IGPEContentHandler
name
- Feature namefeature
- Consumer application object that represents a featurepublic void addNameToLayer(String name, Object layer)
IGPEContentHandler
addNameToLayer
in interface IGPEContentHandler
name
- Layer namelayer
- The consumer application object that represents a layerpublic void addParentElementToElement(Object parent, Object element)
IGPEContentHandler
addParentElementToElement
in interface IGPEContentHandler
parent
- Consumer application object that represents the parent elementelement
- Consumer application object that represents the child elementpublic void addParentLayerToLayer(Object parent, Object layer)
IGPEContentHandler
addParentLayerToLayer
in interface IGPEContentHandler
parent
- The consumer application object that represents the parent layerlayer
- The consumer application object that represents the child layerpublic void addSrsToLayer(String srs, Object Layer)
IGPEContentHandler
addSrsToLayer
in interface IGPEContentHandler
srs
- Spatial reference systempublic void endBbox(Object bbox)
IGPEContentHandler
endBbox
in interface IGPEContentHandler
bbox
- The consumer application object that represents a
bounding boxpublic void endElement(Object element)
IGPEContentHandler
endElement
in interface IGPEContentHandler
element
- Consumer application object that represents an elementpublic void endFeature(Object feature)
IGPEContentHandler
endFeature
in interface IGPEContentHandler
feature
- Consumer application object that represents a featurepublic void endInnerPolygon(Object innerPolygon)
IGPEContentHandler
endInnerPolygon
in interface IGPEContentHandler
innerPolygon
- Consumer application object that represents a innerPolygonpublic void endLayer(Object layer)
IGPEContentHandler
endLayer
in interface IGPEContentHandler
layer
- The consumer application object that represents a layerpublic void endLineString(Object lineString)
IGPEContentHandler
endLineString
in interface IGPEContentHandler
lineString
- Consumer application object that represents a lineStringpublic void endLinearRing(Object linearRing)
IGPEContentHandler
endLinearRing
in interface IGPEContentHandler
linearRing
- Consumer application object that represents a linearRingpublic void endPoint(Object point)
IGPEContentHandler
endPoint
in interface IGPEContentHandler
point
- Consumer application object that represents a pointpublic void endPolygon(Object Polygon)
IGPEContentHandler
endPolygon
in interface IGPEContentHandler
Polygon
- Consumer application object that represents a polygonpublic Object startBbox(String id, ICoordinateIterator coords, String srs)
IGPEContentHandler
startBbox
in interface IGPEContentHandler
id
- Bounding box identifiercoords
- A coordinates iteratorsrs
- Spatial reference systempublic Object startElement(String namespace, String name, Object value, IAttributesIterator attributes, Object parentElement)
IGPEContentHandler
startElement
in interface IGPEContentHandler
namespace
- XML namespacename
- Element namevalue
- Element valueattributes
- Element attributesparentElement
- The parent of this element (if exists)public Object startFeature(String id, String namespace, String name, IAttributesIterator attributes, Object layer)
IGPEContentHandler
startFeature
in interface IGPEContentHandler
id
- Feature identifiernamespace
- XML namespacename
- Feature nameattributes
- Feature attributeslayer
- Consumer application object that represents a layerpublic Object startInnerPolygon(String id, ICoordinateIterator coords, String srs)
IGPEContentHandler
startInnerPolygon
in interface IGPEContentHandler
id
- InnerPolygon identifiercoords
- A coordinates iteratorsrs
- Spatial reference systempublic Object startLayer(String id, String namespace, String name, String description, String srs, IAttributesIterator attributes, Object parentLayer, Object bBox)
IGPEContentHandler
startLayer
in interface IGPEContentHandler
id
- Layer identifiernamespace
- XML namespacename
- Layer namedescription
- Layer descriptionsrs
- Layer spatial reference systemattributes
- Layer attributesparentLayer
- Layer that contains itbBox
- Layer bounding boxpublic Object startLineString(String id, ICoordinateIterator coords, String srs)
IGPEContentHandler
startLineString
in interface IGPEContentHandler
id
- LineString identifiercoords
- A coordinates iteratorsrs
- Spatial reference systempublic Object startLinearRing(String id, ICoordinateIterator coords, String srs)
IGPEContentHandler
startLinearRing
in interface IGPEContentHandler
id
- LinearRing identifiercoords
- A coordinates iteratorsrs
- Spatial reference systempublic Object startPoint(String id, ICoordinateIterator coords, String srs)
IGPEContentHandler
startPoint
in interface IGPEContentHandler
id
- Point identifiercoords
- A coordinates iteratorsrs
- Spatial reference systempublic Object startPolygon(String id, ICoordinateIterator coords, String srs)
IGPEContentHandler
startPolygon
in interface IGPEContentHandler
id
- Polygon identifiercoords
- A coordinates iteratorsrs
- Spatial reference systempublic void addGeometryToMultiGeometry(Object geometry, Object multiGeometry)
IGPEContentHandler
addGeometryToMultiGeometry
in interface IGPEContentHandler
geometry
- Consumer application object that represents a geometrymultiGeometry
- Consumer application object that represents a multiGeometrypublic void addCurveToMultiCurve(Object curve, Object multiCurve)
IGPEContentHandlerSFP0
addCurveToMultiCurve
in interface IGPEContentHandlerSFP0
curve
- Consumer application object that represents a curvemultiCurve
- Consumer application object that represents a multiCurvepublic Object startMultiCurve(String id, String srs)
IGPEContentHandlerSFP0
startMultiCurve
in interface IGPEContentHandlerSFP0
id
- MultyCurve identifiersrs
- Spatial reference systempublic void endMultiCurve(Object multiCurve)
IGPEContentHandlerSFP0
endMultiCurve
in interface IGPEContentHandlerSFP0
multiCurve
- Consumer application object that represents a multiCurvepublic Object startCurve(String id, ICoordinateIterator coords, String srs)
IGPEContentHandlerSFP0
startCurve
in interface IGPEContentHandlerSFP0
id
- curve identifiercoords
- A coordinates iteratorsrs
- Spatial reference systempublic void endCurve(Object Curve)
IGPEContentHandlerSFP0
endCurve
in interface IGPEContentHandlerSFP0
Curve
- Consumer application object that represents a Curvepublic void addLineStringToMultiLineString(Object lineString, Object multiLineString)
IGPEContentHandler
addLineStringToMultiLineString
in interface IGPEContentHandler
lineString
- Consumer application object that represents a lineStringmultiLineString
- Consumer application object that represents a multiLineStringpublic void addPointToMultiPoint(Object point, Object multiPoint)
IGPEContentHandler
addPointToMultiPoint
in interface IGPEContentHandler
point
- Consumer application object that represents a pointmultiPoint
- Consumer application object that represents a multiPointpublic void addPolygonToMultiPolygon(Object polygon, Object multiPolygon)
IGPEContentHandler
addPolygonToMultiPolygon
in interface IGPEContentHandler
polygon
- Consumer application object that represents a polygonmultiPolygon
- Consumer application object that represents a multiPolygonpublic void endMultiGeometry(Object multiGeometry)
IGPEContentHandler
endMultiGeometry
in interface IGPEContentHandler
multiGeometry
- Consumer application object that represents a multiGeometrypublic void endMultiLineString(Object multiLineString)
IGPEContentHandler
endMultiLineString
in interface IGPEContentHandler
multiLineString
- Consumer application object that represents a multiLineStringpublic void endMultiPoint(Object multiPoint)
IGPEContentHandler
endMultiPoint
in interface IGPEContentHandler
multiPoint
- Consumer application object that represents a multiPointpublic void endMultiPolygon(Object multiPolygon)
IGPEContentHandler
endMultiPolygon
in interface IGPEContentHandler
multiPolygon
- Consumer application object that represents a multiPolygonpublic Object startMultiGeometry(String id, String srs)
IGPEContentHandler
startMultiGeometry
in interface IGPEContentHandler
id
- MultiGeometry identifiersrs
- Spatial reference systempublic Object startMultiLineString(String id, String srs)
IGPEContentHandler
startMultiLineString
in interface IGPEContentHandler
id
- MultiLineString identifiersrs
- Spatial reference systempublic Object startMultiPoint(String id, String srs)
IGPEContentHandler
startMultiPoint
in interface IGPEContentHandler
id
- MultiPoint identifiersrs
- Spatial reference systempublic Object startMultiPolygon(String id, String srs)
IGPEContentHandler
startMultiPolygon
in interface IGPEContentHandler
id
- MultiPolygon identifiersrs
- Spatial reference systempublic void addSegmentToCurve(Object segment, Object curve)
IGPEContentHandlerSFP0
addSegmentToCurve
in interface IGPEContentHandlerSFP0
segment
- The segment to addcurve
- The curvepublic Object startCurve(String id, String srs)
IGPEContentHandlerSFP0
startCurve
in interface IGPEContentHandlerSFP0
id
- curve identifiersrs
- Spatial reference systempublic Object startMetadata(String type, String data, IAttributesIterator attributes)
IGPEContentHandler
startMetadata
in interface IGPEContentHandler
type
- String with the type of metadata, if is a description or any elsedata
- String with the value of the data.attributes
- Object to pass the Atributtespublic Object startTime(String name, String description, String type, String time, Object previous, Object next)
IGPEContentHandler
startTime
in interface IGPEContentHandler
type
- String with the type of time, if is a description or any elsepublic Object startTime(String type, String time)
startTime
in interface IGPEContentHandler
public void addMetadataToFeature(Object metadata, Object feature)
IGPEContentHandler
addMetadataToFeature
in interface IGPEContentHandler
metadata
- Consumer application object that represents metadatafeature
- Consumer application object that represents a featurepublic void addMetadataToMetadata(Object metadata, Object parent)
IGPEContentHandler
addMetadataToMetadata
in interface IGPEContentHandler
metadata
- Consumer application object that represents metadataparent
- Consumer application object that represents the complex metadatapublic void addTimeToFeature(Object time, Object feature)
IGPEContentHandler
addTimeToFeature
in interface IGPEContentHandler
time
- Consumer application object that represents timefeature
- Consumer application object that represents a featurepublic void endMetadata(Object metadata)
IGPEContentHandler
endMetadata
in interface IGPEContentHandler
metadata
- Consumer application object that represents metadatapublic void endTime(Object time)
IGPEContentHandler
endTime
in interface IGPEContentHandler
time
- Consumer application object that represents time