Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.schema.model.constraint.type
Class GeometryType

java.lang.Object
  extended by eu.esdihumboldt.hale.common.schema.model.constraint.type.GeometryType
All Implemented Interfaces:
TypeConstraint

@Immutable
public class GeometryType
extends Object
implements TypeConstraint

Specifies the geometry type for properties with a GeometryProperty binding.

Since:
2.5
Author:
Simon Templer

Constructor Summary
GeometryType()
          Creates a default geometry constraint classifying the type as being no geometry type.
GeometryType(TypeDefinition type)
          Creates a geometry type constraint that determines the geometry binding from the given type definition.
 
Method Summary
static GeometryType get(Class<? extends com.vividsolutions.jts.geom.Geometry> binding)
          Get the geometry type constraint with the given JTS geometry binding.
 Class<? extends com.vividsolutions.jts.geom.Geometry> getBinding()
          Get the geometry binding of the type.
 boolean isGeometry()
          Specifies if the type the constraint is associated to is a geometry type (meaning it has a GeometryProperty or Geometry value).
 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

GeometryType

public GeometryType()
Creates a default geometry constraint classifying the type as being no geometry type.

See Also:
Constraint

GeometryType

public GeometryType(TypeDefinition type)
Creates a geometry type constraint that determines the geometry binding from the given type definition.

Parameters:
type - the type definition
Method Detail

get

public static GeometryType get(Class<? extends com.vividsolutions.jts.geom.Geometry> binding)
Get the geometry type constraint with the given JTS geometry binding.

Parameters:
binding - the type's geometry binding
Returns:
the binding constraint (which is a singleton)

getBinding

public Class<? extends com.vividsolutions.jts.geom.Geometry> getBinding()
Get the geometry binding of the type.

Returns:
the binding, null if it is no geometry
See Also:
isGeometry()

isGeometry

public boolean isGeometry()
Specifies if the type the constraint is associated to is a geometry type (meaning it has a GeometryProperty or Geometry value).

Returns:
if the type is a geometry type

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()

Humboldt Alignment Editor 2.5.0

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