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