@Immutable public class GeometryType extends Object implements TypeConstraint
GeometryProperty
binding.Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public GeometryType()
Constraint
public GeometryType(TypeDefinition type)
type
- the type definitionpublic static GeometryType get(Class<? extends com.vividsolutions.jts.geom.Geometry> binding)
binding
- the type's geometry bindingpublic Class<? extends com.vividsolutions.jts.geom.Geometry> getBinding()
null
if it is no geometryisGeometry()
public boolean isGeometry()
GeometryProperty
or Geometry
value).public boolean isInheritable()
TypeConstraint
isInheritable
in interface TypeConstraint
TypeConstraint.isInheritable()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a