Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.io.gml.geometry.constraint
Class GeometryFactory

java.lang.Object
  extended by eu.esdihumboldt.hale.io.gml.geometry.constraint.GeometryFactory
All Implemented Interfaces:
TypeConstraint

public class GeometryFactory
extends Object
implements TypeConstraint

Constraint associating a geometry handler with a type. By default no geometry handler is associated.

Author:
Simon Templer

Constructor Summary
GeometryFactory()
          Create a default geometry factory constraint.
GeometryFactory(GeometryHandler handler)
          Create a geometry factory constraint based on the given geometry handler.
 
Method Summary
 Object createGeometry(Instance instance, int srsDimension)
          Create a geometry value from a given instance.
 boolean isInheritable()
          Determines if the constraint is inheritable, meaning it may be used for a sub-type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeometryFactory

public GeometryFactory()
Create a default geometry factory constraint.


GeometryFactory

public GeometryFactory(GeometryHandler handler)
Create a geometry factory constraint based on the given geometry handler.

Parameters:
handler - the geometry handler
Method Detail

isInheritable

public boolean isInheritable()
Description copied from interface: TypeConstraint
Determines if the constraint is inheritable, meaning it may be used for a sub-type. A constraint may only be inherited if it is not overriden in the sub-type.

Specified by:
isInheritable in interface TypeConstraint
Returns:
if the constraint is inheritable
See Also:
TypeConstraint.isInheritable()

createGeometry

public Object createGeometry(Instance instance,
                             int srsDimension)
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, may be null if no geometry could be created or if no geometry handler is associated

Humboldt Alignment Editor 2.5.0

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