public class GPEContentHandlerAdapter extends Object implements IGPEContentHandlerInmGeom
Constructor and Description |
---|
GPEContentHandlerAdapter(IGPEContentHandler contentHandler) |
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
|
Object |
endMultiGeometry(Object multiGeometry)
It is thrown when the multiGeometry has been completely parsed
|
Object |
endMultiLineString(Object multiLineString)
It is thrown when the multiLineString has been completely parsed
|
Object |
endMultiPoint(Object multiPoint)
It is thrown when the multiPoint has been completely parsed
|
Object |
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.
|
Object |
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
|
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 |
startMultiCurve(String id,
String srs,
int dimension) |
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 |
startMultiLineString(String id,
String srs,
int dimension) |
Object |
startMultiPoint(String id,
String srs)
This method indicates that the parser has found a multipoint.
|
Object |
startMultiPoint(String id,
String srs,
int dimension) |
Object |
startMultiPolygon(String id,
String srs)
This method indicates that the parser has found a multiPolygon.
|
Object |
startMultiPolygon(String id,
String srs,
int dimension) |
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
|
public GPEContentHandlerAdapter(IGPEContentHandler contentHandler)
public Object startCurve(String id, ICoordinateIterator coords, String srs)
IGPEContentHandlerSFP0
startCurve
in interface IGPEContentHandlerSFP0
id
- curve identifiercoords
- A coordinates iteratorsrs
- Spatial reference systempublic Object startCurve(String id, String srs)
IGPEContentHandlerSFP0
startCurve
in interface IGPEContentHandlerSFP0
id
- curve identifiersrs
- Spatial reference systempublic Object startBbox(String id, ICoordinateIterator coords, String srs)
IGPEContentHandlerInmGeom
startBbox
in interface IGPEContentHandlerInmGeom
id
- Bounding box 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 addSegmentToCurve(Object segment, Object curve)
IGPEContentHandlerSFP0
addSegmentToCurve
in interface IGPEContentHandlerSFP0
segment
- The segment to addcurve
- The curvepublic void endBbox(Object bbox)
IGPEContentHandlerInmGeom
endBbox
in interface IGPEContentHandlerInmGeom
bbox
- The consumer application object that represents a
bounding boxpublic Object startMultiCurve(String id, String srs)
IGPEContentHandlerSFP0
startMultiCurve
in interface IGPEContentHandlerSFP0
id
- MultyCurve identifiersrs
- Spatial reference systempublic Object startLayer(String id, String namespace, String name, String description, String srs, IAttributesIterator attributes, Object parentLayer, 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(Object multiCurve)
IGPEContentHandlerSFP0
endMultiCurve
in interface IGPEContentHandlerSFP0
multiCurve
- Consumer application object that represents a multiCurvepublic 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 void endLayer(Object layer)
IGPEContentHandlerInmGeom
endLayer
in interface IGPEContentHandlerInmGeom
layer
- The consumer application object that represents a layerpublic void addNameToLayer(String name, Object layer)
IGPEContentHandlerInmGeom
addNameToLayer
in interface IGPEContentHandlerInmGeom
name
- Layer namelayer
- The consumer application object that represents a layerpublic void addDescriptionToLayer(String description, Object layer)
IGPEContentHandlerInmGeom
addDescriptionToLayer
in interface IGPEContentHandlerInmGeom
description
- Layer descriptionlayer
- The consumer application object that represents a layerpublic void addSrsToLayer(String srs, Object Layer)
IGPEContentHandlerInmGeom
addSrsToLayer
in interface IGPEContentHandlerInmGeom
srs
- Spatial reference systempublic void addParentLayerToLayer(Object parent, 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(Object bbox, Object layer)
IGPEContentHandlerInmGeom
addBboxToLayer
in interface IGPEContentHandlerInmGeom
bbox
- Layer bounding boxlayer
- The consumer application object that represents a layerpublic Object startFeature(String id, String namespace, String name, IAttributesIterator attributes, 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(Object feature)
IGPEContentHandlerInmGeom
endFeature
in interface IGPEContentHandlerInmGeom
feature
- Consumer application object that represents a featurepublic void addNameToFeature(String name, Object feature)
IGPEContentHandlerInmGeom
addNameToFeature
in interface IGPEContentHandlerInmGeom
name
- Feature namefeature
- Consumer application object that represents a featurepublic void addFeatureToLayer(Object feature, Object layer)
IGPEContentHandlerInmGeom
addFeatureToLayer
in interface IGPEContentHandlerInmGeom
feature
- Consumer application object that represents a featurelayer
- Consumer application object that represents a layerpublic Object startElement(String namespace, String name, Object value, IAttributesIterator attributes, 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(Object element)
IGPEContentHandlerInmGeom
endElement
in interface IGPEContentHandlerInmGeom
element
- Consumer application object that represents an elementpublic void addParentElementToElement(Object parent, 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(Object element, Object feature)
IGPEContentHandlerInmGeom
addElementToFeature
in interface IGPEContentHandlerInmGeom
element
- Consumer application object that represents an elementfeature
- Consumer application object that represents the featurepublic Object startPoint(String id, ICoordinateIterator coords, String srs)
IGPEContentHandlerInmGeom
startPoint
in interface IGPEContentHandlerInmGeom
id
- Point identifiercoords
- A coordinates iteratorsrs
- Spatial reference systempublic void endPoint(Object point)
IGPEContentHandlerInmGeom
endPoint
in interface IGPEContentHandlerInmGeom
point
- Consumer application object that represents a pointpublic Object startLineString(String id, ICoordinateIterator coords, String srs)
IGPEContentHandlerInmGeom
startLineString
in interface IGPEContentHandlerInmGeom
id
- LineString identifiercoords
- A coordinates iteratorsrs
- Spatial reference systempublic void endLineString(Object lineString)
IGPEContentHandlerInmGeom
endLineString
in interface IGPEContentHandlerInmGeom
lineString
- Consumer application object that represents a lineStringpublic Object startLinearRing(String id, ICoordinateIterator coords, String srs)
IGPEContentHandlerInmGeom
startLinearRing
in interface IGPEContentHandlerInmGeom
id
- LinearRing identifiercoords
- A coordinates iteratorsrs
- Spatial reference systempublic void endLinearRing(Object linearRing)
IGPEContentHandlerInmGeom
endLinearRing
in interface IGPEContentHandlerInmGeom
linearRing
- Consumer application object that represents a linearRingpublic Object startPolygon(String id, ICoordinateIterator coords, String srs)
IGPEContentHandlerInmGeom
startPolygon
in interface IGPEContentHandlerInmGeom
id
- Polygon identifiercoords
- A coordinates iteratorsrs
- Spatial reference systempublic Object endPolygon(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(Object innerPolygon, Object Polygon)
IGPEContentHandlerInmGeom
addInnerPolygonToPolygon
in interface IGPEContentHandlerInmGeom
innerPolygon
- Consumer application object that represents a innerPolygonPolygon
- Consumer application object that represents a polygonpublic Object startInnerPolygon(String id, ICoordinateIterator coords, String srs)
IGPEContentHandlerInmGeom
startInnerPolygon
in interface IGPEContentHandlerInmGeom
id
- InnerPolygon identifiercoords
- A coordinates iteratorsrs
- Spatial reference systempublic void endInnerPolygon(Object innerPolygon)
IGPEContentHandlerInmGeom
endInnerPolygon
in interface IGPEContentHandlerInmGeom
innerPolygon
- Consumer application object that represents a innerPolygonpublic Object startMultiPoint(String id, String srs)
IGPEContentHandlerInmGeom
startMultiPoint
in interface IGPEContentHandlerInmGeom
id
- MultiPoint identifiersrs
- Spatial reference systempublic Object endMultiPoint(Object multiPoint)
IGPEContentHandlerInmGeom
endMultiPoint
in interface IGPEContentHandlerInmGeom
multiPoint
- Consumer application object that represents a multiPointpublic void addPointToMultiPoint(Object point, Object multiPoint)
IGPEContentHandlerInmGeom
addPointToMultiPoint
in interface IGPEContentHandlerInmGeom
point
- Consumer application object that represents a pointmultiPoint
- Consumer application object that represents a multiPointpublic Object startMultiLineString(String id, String srs)
IGPEContentHandlerInmGeom
startMultiLineString
in interface IGPEContentHandlerInmGeom
id
- MultiLineString identifiersrs
- Spatial reference systempublic Object endMultiLineString(Object multiLineString)
IGPEContentHandlerInmGeom
endMultiLineString
in interface IGPEContentHandlerInmGeom
multiLineString
- Consumer application object that represents a multiLineStringpublic void addLineStringToMultiLineString(Object lineString, Object multiLineString)
IGPEContentHandlerInmGeom
addLineStringToMultiLineString
in interface IGPEContentHandlerInmGeom
lineString
- Consumer application object that represents a lineStringmultiLineString
- Consumer application object that represents a multiLineStringpublic Object startMultiPolygon(String id, String srs)
IGPEContentHandlerInmGeom
startMultiPolygon
in interface IGPEContentHandlerInmGeom
id
- MultiPolygon identifiersrs
- Spatial reference systempublic Object endMultiPolygon(Object multiPolygon)
IGPEContentHandlerInmGeom
endMultiPolygon
in interface IGPEContentHandlerInmGeom
multiPolygon
- Consumer application object that represents a multiPolygonpublic void addPolygonToMultiPolygon(Object polygon, Object multiPolygon)
IGPEContentHandlerInmGeom
addPolygonToMultiPolygon
in interface IGPEContentHandlerInmGeom
polygon
- Consumer application object that represents a polygonmultiPolygon
- Consumer application object that represents a multiPolygonpublic Object startMultiGeometry(String id, String srs)
IGPEContentHandlerInmGeom
startMultiGeometry
in interface IGPEContentHandlerInmGeom
id
- MultiGeometry identifiersrs
- Spatial reference systempublic Object endMultiGeometry(Object multiGeometry)
IGPEContentHandlerInmGeom
endMultiGeometry
in interface IGPEContentHandlerInmGeom
multiGeometry
- Consumer application object that represents a multiGeometrypublic void addGeometryToMultiGeometry(Object geometry, Object multiGeometry)
IGPEContentHandlerInmGeom
addGeometryToMultiGeometry
in interface IGPEContentHandlerInmGeom
geometry
- Consumer application object that represents a geometrymultiGeometry
- Consumer application object that represents a multiGeometrypublic void addBboxToFeature(Object bbox, 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(Object geometry, Object feature)
IGPEContentHandlerInmGeom
addGeometryToFeature
in interface IGPEContentHandlerInmGeom
geometry
- Consumer application object that represents a geometryfeature
- Consumer application object that represents a featurepublic Object startMetadata(String type, 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(Object metadata, Object feature)
IGPEContentHandlerInmGeom
addMetadataToFeature
in interface IGPEContentHandlerInmGeom
metadata
- Consumer application object that represents metadatafeature
- Consumer application object that represents a featurepublic void addMetadataToMetadata(Object metadata, Object parent)
IGPEContentHandlerInmGeom
addMetadataToMetadata
in interface IGPEContentHandlerInmGeom
metadata
- Consumer application object that represents metadataparent
- Consumer application object that represents the complex metadatapublic void endMetadata(Object metadata)
IGPEContentHandlerInmGeom
endMetadata
in interface IGPEContentHandlerInmGeom
metadata
- Consumer application object that represents metadatapublic void endTime(Object time)
IGPEContentHandlerInmGeom
endTime
in interface IGPEContentHandlerInmGeom
time
- Consumer application object that represents timepublic Object startTime(String name, String description, String type, String time, Object previous, Object next)
IGPEContentHandlerInmGeom
startTime
in interface IGPEContentHandlerInmGeom
type
- String with the type of time, if is a description or any elsepublic Object startTime(String type, String time)
startTime
in interface IGPEContentHandlerInmGeom
public void addTimeToFeature(Object time, Object feature)
IGPEContentHandlerInmGeom
addTimeToFeature
in interface IGPEContentHandlerInmGeom
time
- Consumer application object that represents timefeature
- Consumer application object that represents a featurepublic Object startMultiCurve(String id, String srs, int dimension)
startMultiCurve
in interface IGPEContentHandlerSFP0
public Object startMultiPoint(String id, String srs, int dimension)
startMultiPoint
in interface IGPEContentHandlerInmGeom
public Object startMultiLineString(String id, String srs, int dimension)
startMultiLineString
in interface IGPEContentHandlerInmGeom
public Object startMultiPolygon(String id, String srs, int dimension)
startMultiPolygon
in interface IGPEContentHandlerInmGeom