|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.io.gml.geometry.Geometries
public class Geometries
Manages geometry handlers.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 to
GeometryNotSupportedException
- 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 instance
Binding
created in
GeometryHandler.getTypeConstraints(TypeDefinition)
.
GeometryNotSupportedException
- if the type definition doesn't
represent a geometry type supported by the handlerGeometryHandler.createGeometry(Instance, int)
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |