public class DefaultGeometryType extends AbstractGeometryType
| Constructor and Description |
|---|
DefaultGeometryType(java.lang.Class geomClass,
java.lang.String name,
int type,
int subType)
This constructor is used by the
GeometryManager when it register
a new GeometryType.It has not be used from other parts. |
DefaultGeometryType(java.lang.Class geomClass,
java.lang.String name,
int type,
int subType,
int[] superTypes,
int[] superSubTypes)
This constructor is used by the
GeometryManager when it register
a new GeometryType.It has not be used from other parts. |
| Modifier and Type | Method and Description |
|---|---|
GeometryType |
addAlias(java.lang.String alias) |
Geometry |
create()
This method creates a
Geometry with the type specified by this
GeometryType. |
boolean |
equals(java.lang.Object obj) |
java.util.Collection<java.lang.String> |
getAlias() |
int |
getDimension() |
java.lang.String |
getFullName()
Return the full name of this geometry type.
|
java.lang.Class |
getGeometryClass() |
java.lang.String |
getName() |
int |
getSubType() |
int[] |
getSuperTypes() |
int |
getType() |
int |
hashCode() |
boolean |
isSubTypeOf(int geometrySubType)
Check if a geometry subType inherits of other subType.
|
boolean |
isTypeOf(int geometryType)
Check if a geometry type inherits of other type.
|
getGeometryOperation, getGeometryOperations, hasM, hasZ, isSubTypeOf, isTypeOf, setGeometryOperation, toStringpublic DefaultGeometryType(java.lang.Class geomClass,
java.lang.String name,
int type,
int subType,
int[] superTypes,
int[] superSubTypes)
GeometryManager when it register
a new GeometryType.It has not be used from other parts.geomClass - Geometry class (e.g: Point2D.class)name - Symbolic Geometry name that is used to persist the geometry
type. In some cases, it is better to use this name because the id can
change for different application executions.type - The geometry abstract typesubType - superTypes - The superTypes of the geometry typesuperSubTypes - The superSubtypes of the geometry typepublic DefaultGeometryType(java.lang.Class geomClass,
java.lang.String name,
int type,
int subType)
GeometryManager when it register
a new GeometryType.It has not be used from other parts.geomClass - Geometry class (e.g: Point2D.class)name - Symbolic Geometry name that is used to persist the geometry
type. In some cases, it is better to use this name because the id can
change for different application executions.type - The geometry abstract typesubType - public Geometry create() throws CreateGeometryException
Geometry with the type specified by this
GeometryType. The geometry has to have a constructor without arguments.CreateGeometryExceptionpublic java.lang.Class getGeometryClass()
public java.lang.String getName()
public java.lang.String getFullName()
GeometryTypepublic int getType()
Geometry.TYPES The type is an abstract
representation of the object (Point, Curve...) but it is not a concrete
representation (Point2D, Point3D...).public int getSubType()
Geometry.SUBTYPES. The subtype represents
a set of geometries with a dimensional relationship (2D, 3D, 2DM...)public boolean isTypeOf(int geometryType)
GeometryTypegeometryType - the value of the Geometry.TYPES to check if
is it super typepublic boolean isSubTypeOf(int geometrySubType)
GeometryTypegeometrySubType - the value of the Geometry.SUBTYPES to
check if is it super subTypepublic int getDimension()
public boolean equals(java.lang.Object obj)
equals in class AbstractGeometryTypepublic int hashCode()
hashCode in class java.lang.Objectpublic GeometryType addAlias(java.lang.String alias)
public java.util.Collection<java.lang.String> getAlias()
public int[] getSuperTypes()