Interface IGPEContentHandler

All Superinterfaces:
IGPEContentHandlerSFP0

public interface IGPEContentHandler extends IGPEContentHandlerSFP0
This interface defines the "contract" between the consumer application and libGPE. It has methods that will be invoke by the parser every time that an event happens
Author:
Jorge Piera Llodrá (jorge.piera@iver.es), Carlos Sánchez Periñán (sanchez_carper@gva.es)
  • Method Details

    • startBbox

      Object startBbox(String id, ICoordinateIterator coords, String srs)
      This method is thrown when the parser find a new bounding box.
      Parameters:
      id - Bounding box identifier
      coords - A coordinates iterator
      srs - Spatial reference system
      Returns:
      The consumer application object that represents a bounding box
    • endBbox

      void endBbox(Object bbox)
      This method indicates that the parser thas finished to parse the bounding box.
      Parameters:
      bbox - The consumer application object that represents a bounding box
    • startLayer

      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.
      Parameters:
      id - Layer identifier
      namespace - XML namespace
      name - Layer name
      description - Layer description
      srs - Layer spatial reference system
      attributes - Layer attributes
      parentLayer - Layer that contains it
      bBox - Layer bounding box
      Returns:
      The consumer application object that represents a layer
    • endLayer

      void endLayer(Object layer)
      It is thrown when a layer has been finished to parse.
      Parameters:
      layer - The consumer application object that represents a layer
    • addNameToLayer

      void addNameToLayer(String name, Object layer)
      It adds a name to one layer that has been previously created using the startLayer method.
      Parameters:
      name - Layer name
      layer - The consumer application object that represents a layer
    • addDescriptionToLayer

      void addDescriptionToLayer(String description, Object layer)
      It adds the description to one layer that has been previously created using the startLayer method.
      Parameters:
      description - Layer description
      layer - The consumer application object that represents a layer
    • addSrsToLayer

      void addSrsToLayer(String srs, Object Layer)
      It adds a spatial reference system to one layer that has been previously created using the startLayer method.
      Parameters:
      srs - Spatial reference system
      layer - The consumer application object that represents a layer
    • addParentLayerToLayer

      void addParentLayerToLayer(Object parent, Object layer)
      It establish the relationship parent-child between two layers that have been previously created using the startLayer method.
      Parameters:
      parent - The consumer application object that represents the parent layer
      layer - The consumer application object that represents the child layer
    • addBboxToLayer

      void addBboxToLayer(Object bbox, Object layer)
      It adds a bounding box to one layer that has been previously created using the startLayer method.
      Parameters:
      bbox - Layer bounding box
      layer - The consumer application object that represents a layer
    • startFeature

      Object startFeature(String id, String namespace, String name, IAttributesIterator attributes, Object layer)
      It is thrown when the parser has found a new feature.
      Parameters:
      id - Feature identifier
      namespace - XML namespace
      name - Feature name
      attributes - Feature attributes
      layer - Consumer application object that represents a layer
      Returns:
      Consumer application object that represents a feature
    • endFeature

      void endFeature(Object feature)
      This method is thrown when the parser has finished to parse a feature.
      Parameters:
      feature - Consumer application object that represents a feature
    • addNameToFeature

      void addNameToFeature(String name, Object feature)
      This method adds a name to one layer that has been previously created using the startFeature method.
      Parameters:
      name - Feature name
      feature - Consumer application object that represents a feature
    • addFeatureToLayer

      void addFeatureToLayer(Object feature, Object layer)
      This method adds a feature to one layer that has been previously created using the startLayer method.
      Parameters:
      feature - Consumer application object that represents a feature
      layer - Consumer application object that represents a layer
    • startElement

      Object startElement(String namespace, String name, Object value, IAttributesIterator attributes, Object parentElement)
      It is thrown when the parser has found a new element
      Parameters:
      namespace - XML namespace
      name - Element name
      value - Element value
      attributes - Element attributes
      parentElement - The parent of this element (if exists)
      Returns:
      Consumer application object that represents an element
    • endElement

      void endElement(Object element)
      This method is thrown when the parser find the end of an element.
      Parameters:
      element - Consumer application object that represents an element
    • addParentElementToElement

      void addParentElementToElement(Object parent, Object element)
      It is thrown to establish a relationship parent-child between two elements.
      Parameters:
      parent - Consumer application object that represents the parent element
      element - Consumer application object that represents the child element
    • addElementToFeature

      void addElementToFeature(Object element, Object feature)
      This method adds an element to one feature that has been previously created using the startFeature method
      Parameters:
      element - Consumer application object that represents an element
      feature - Consumer application object that represents the feature
    • startPoint

      Object startPoint(String id, ICoordinateIterator coords, String srs)
      This method indicates that the parser has found a point.
      Parameters:
      id - Point identifier
      coords - A coordinates iterator
      srs - Spatial reference system
      Returns:
      Consumer application object that represents a point
    • endPoint

      void endPoint(Object point)
      It is thrown when the point has been completely parsed.
      Parameters:
      point - Consumer application object that represents a point
    • startLineString

      Object startLineString(String id, ICoordinateIterator coords, String srs)
      This method indicates that the parser has found a lineString.
      Parameters:
      id - LineString identifier
      coords - A coordinates iterator
      srs - Spatial reference system
      Returns:
      Consumer application object that represents a lineString
    • endLineString

      void endLineString(Object lineString)
      It is thrown when the lineString has been completely parsed.
      Parameters:
      lineString - Consumer application object that represents a lineString
    • startLinearRing

      Object startLinearRing(String id, ICoordinateIterator coords, String srs)
      This method indicates that the parser has found a linearRing.
      Parameters:
      id - LinearRing identifier
      coords - A coordinates iterator
      srs - Spatial reference system
      Returns:
      Consumer application object that represents a linarRing
    • endLinearRing

      void endLinearRing(Object linearRing)
      It is thrown when the linearRing has been completely parsed.
      Parameters:
      linearRing - Consumer application object that represents a linearRing
    • startPolygon

      Object startPolygon(String id, ICoordinateIterator coords, String srs)
      This method indicates that the parser has found a polygon.
      Parameters:
      id - Polygon identifier
      coords - A coordinates iterator
      srs - Spatial reference system
      Returns:
      Consumer application object that represents a polygon
    • endPolygon

      void endPolygon(Object polygon)
      It is thrown when the polygon has been completely parsed.
      Parameters:
      polygon - Consumer application object that represents a polygon
    • addInnerPolygonToPolygon

      void addInnerPolygonToPolygon(Object innerPolygon, Object Polygon)
      This method associates a innerPolygon with its polygon
      Parameters:
      innerPolygon - Consumer application object that represents a innerPolygon
      Polygon - Consumer application object that represents a polygon
    • startInnerPolygon

      Object startInnerPolygon(String id, ICoordinateIterator coords, String srs)
      This method indicates that the parser has found a InnerPolygon.
      Parameters:
      id - InnerPolygon identifier
      coords - A coordinates iterator
      srs - Spatial reference system
      Returns:
      Consumer application object that represents a innerPolygon
    • endInnerPolygon

      void endInnerPolygon(Object innerPolygon)
      It is thrown when the innerPolygon has been completely parsed.
      Parameters:
      innerPolygon - Consumer application object that represents a innerPolygon
    • startMultiPoint

      Object startMultiPoint(String id, String srs)
      This method indicates that the parser has found a multipoint.
      Parameters:
      id - MultiPoint identifier
      srs - Spatial reference system
      Returns:
      Consumer application object that represents a multiPoint
    • startMultiPoint

      Object startMultiPoint(String id, String srs, int dimension)
    • endMultiPoint

      void endMultiPoint(Object multiPoint)
      It is thrown when the multiPoint has been completely parsed
      Parameters:
      multiPoint - Consumer application object that represents a multiPoint
    • addPointToMultiPoint

      void addPointToMultiPoint(Object point, Object multiPoint)
      It is thrown to add a point to one multiPoint.
      Parameters:
      point - Consumer application object that represents a point
      multiPoint - Consumer application object that represents a multiPoint
    • startMultiLineString

      Object startMultiLineString(String id, String srs)
      This method indicates that the parser has found a multiLineString.
      Parameters:
      id - MultiLineString identifier
      srs - Spatial reference system
      Returns:
      Consumer application object that represents a multiLineString
    • startMultiLineString

      Object startMultiLineString(String id, String srs, int dimension)
    • endMultiLineString

      void endMultiLineString(Object multiLineString)
      It is thrown when the multiLineString has been completely parsed
      Parameters:
      multiLineString - Consumer application object that represents a multiLineString
    • addLineStringToMultiLineString

      void addLineStringToMultiLineString(Object lineString, Object multiLineString)
      It is thrown to add a lineString to one lineString.
      Parameters:
      lineString - Consumer application object that represents a lineString
      multiLineString - Consumer application object that represents a multiLineString
    • startMultiPolygon

      Object startMultiPolygon(String id, String srs)
      This method indicates that the parser has found a multiPolygon.
      Parameters:
      id - MultiPolygon identifier
      srs - Spatial reference system
      Returns:
      Consumer application object that represents a multiPolygon
    • startMultiPolygon

      Object startMultiPolygon(String id, String srs, int dimension)
    • endMultiPolygon

      void endMultiPolygon(Object multiPolygon)
      It is thrown when the multiPolygon has been completely parsed
      Parameters:
      multiPolygon - Consumer application object that represents a multiPolygon
    • addPolygonToMultiPolygon

      void addPolygonToMultiPolygon(Object polygon, Object multiPolygon)
      It is thrown to add a polygon to one multiPolygon.
      Parameters:
      polygon - Consumer application object that represents a polygon
      multiPolygon - Consumer application object that represents a multiPolygon
    • startMultiGeometry

      Object startMultiGeometry(String id, String srs)
      This method indicates that the parser has found a multiGeometry.
      Parameters:
      id - MultiGeometry identifier
      srs - Spatial reference system
      Returns:
      Consumer application object that represents a multiGeometry
    • endMultiGeometry

      void endMultiGeometry(Object multiGeometry)
      It is thrown when the multiGeometry has been completely parsed
      Parameters:
      multiGeometry - Consumer application object that represents a multiGeometry
    • addGeometryToMultiGeometry

      void addGeometryToMultiGeometry(Object geometry, Object multiGeometry)
      It is thrown to add a geometry to one multiGeometry.
      Parameters:
      geometry - Consumer application object that represents a geometry
      multiGeometry - Consumer application object that represents a multiGeometry
    • addBboxToFeature

      void addBboxToFeature(Object bbox, Object feature)
      This method adds a bounding box to a feature.
      Parameters:
      bbox - Consumer application object that represents a bounding box
      feature - Consumer application object that represents a feature
    • addGeometryToFeature

      void addGeometryToFeature(Object geometry, Object feature)
      This method adds a geometry to a feature.
      Parameters:
      geometry - Consumer application object that represents a geometry
      feature - Consumer application object that represents a feature
    • startMetadata

      Object startMetadata(String type, String data, IAttributesIterator attributes)
      It is thrown when the parser has found a new metadata tag
      Parameters:
      type - String with the type of metadata, if is a description or any else
      data - String with the value of the data.
      attributes - Object to pass the Atributtes
      Returns:
      Consumer application object that represents metadata
    • addMetadataToFeature

      void addMetadataToFeature(Object metadata, Object feature)
      This method adds metadata to feature.
      Parameters:
      metadata - Consumer application object that represents metadata
      feature - Consumer application object that represents a feature
    • addMetadataToMetadata

      void addMetadataToMetadata(Object metadata, Object parent)
      This method adds metadata to complex metadata.
      Parameters:
      metadata - Consumer application object that represents metadata
      parent - Consumer application object that represents the complex metadata
    • endMetadata

      void endMetadata(Object metadata)
      This method is thrown when the parser find the end of the metadata of an element.
      Parameters:
      metadata - Consumer application object that represents metadata
    • endTime

      void endTime(Object time)
      This method is thrown when the parser find the end of and element time tag
      Parameters:
      time - Consumer application object that represents time
    • startTime

      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
      Parameters:
      type - String with the type of time, if is a description or any else
      data - String with the value of the data.
      Returns:
      Consumer application object that represents time
    • startTime

      Object startTime(String type, String time)
    • addTimeToFeature

      void addTimeToFeature(Object time, Object feature)
      This method adds time to feature.
      Parameters:
      time - Consumer application object that represents time
      feature - Consumer application object that represents a feature