Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.io.gml.geometry
Interface GeometryHandler

All Known Implementing Classes:
AbstractGeometryHandler, EnvelopeHandler, FixedConstraintsGeometryHandler, GenericGeometryHandler, Geometries, LinearRingHandler, LineStringHandler, PointHandler, PolygonHandler

public interface GeometryHandler

Provides support for configuring geometry schema types and reading geometry objects for certain GML geometry types. A geometry handler must be immutable (not holding any state).

Since:
2.5.0
Author:
Simon Templer

Method Summary
 Object createGeometry(Instance instance, int srsDimension)
          Create a geometry value from a given instance.
 Set<QName> getSupportedTypes()
          Get the geometry types supported by the geometry handler.
 Iterable<TypeConstraint> getTypeConstraints(TypeDefinition type)
          Get the type constraints to associated with a geometry type definition.

This method should at least return the Binding and GeometryType constraints.
 

Method Detail

getSupportedTypes

Set<QName> getSupportedTypes()
Get the geometry types supported by the geometry handler.

Returns:
the names of the supported types

getTypeConstraints

Iterable<TypeConstraint> getTypeConstraints(TypeDefinition type)
                                            throws GeometryNotSupportedException
Get the type constraints to associated with a geometry type definition.

This method should at least return the Binding and GeometryType constraints. Usually the binding should be GeometryProperty.

Parameters:
type - the type definition the constraints will be associated to
Returns:
the type constraints to be assigned to the type definition
Throws:
GeometryNotSupportedException - if the type definition doesn't represent a geometry type supported by the handler

createGeometry

Object createGeometry(Instance instance,
                      int srsDimension)
                      throws GeometryNotSupportedException
Create a geometry value from a given instance.

Parameters:
instance - the instance
srsDimension - the dimension of the instance
Returns:
the geometry value derived from the instance, the return type should match the Binding created in getTypeConstraints(TypeDefinition).
Throws:
GeometryNotSupportedException - if the type definition doesn't represent a geometry type supported by the handler

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d