public class Geometries extends Object implements GeometryHandler
Modifier and Type | Method and Description |
---|---|
Object |
createGeometry(Instance instance,
int srsDimension)
Create a geometry value from a given instance.
|
static Geometries |
getInstance()
Get the geometries 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. |
void |
register(GeometryHandler handler)
Register a geometry handler.
|
public static Geometries getInstance()
public void register(GeometryHandler handler)
handler
- the geometry handlerpublic Set<QName> getSupportedTypes()
GeometryHandler
getSupportedTypes
in interface GeometryHandler
GeometryHandler.getSupportedTypes()
public Iterable<TypeConstraint> getTypeConstraints(TypeDefinition type) throws GeometryNotSupportedException
GeometryHandler
Binding
and
GeometryType
constraints. Usually the binding should be
GeometryProperty
.getTypeConstraints
in interface GeometryHandler
type
- the type definition the constraints will be associated toGeometryNotSupportedException
- if the type definition doesn't
represent a geometry type supported by the handlerGeometryHandler.getTypeConstraints(TypeDefinition)
public Object createGeometry(Instance instance, int srsDimension) throws GeometryNotSupportedException
GeometryHandler
createGeometry
in interface GeometryHandler
instance
- the instancesrsDimension
- the dimension of the instanceBinding
created in
GeometryHandler.getTypeConstraints(TypeDefinition)
.GeometryNotSupportedException
- if the type definition doesn't
represent a geometry type supported by the handlerGeometryHandler.createGeometry(Instance, int)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a