Package com.luciad.datamodels
Class GeometryDataAnnotation
java.lang.Object
com.luciad.datamodels.DataAnnotation
com.luciad.datamodels.GeometryDataAnnotation
- All Implemented Interfaces:
AutoCloseable
DataAnnotation
that is added on a DataType
to define which property path contains the main geometry.
The referred-to property must have Geometry
as its data type.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGeometryDataAnnotation
(DataPropertyPath propertyPath) Creates a newGeometryDataAnnotation
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
protected void
finalize()
static GeometryDataAnnotation
Searches for the geometry data annotation on a give data type.Returns the geometry property path for the type annotated with this annotation.int
hashCode()
Returns the hash code.
-
Constructor Details
-
GeometryDataAnnotation
Creates a newGeometryDataAnnotation
instance.- Parameters:
propertyPath
- the path to the data property that contains the geometry.
-
-
Method Details
-
finalize
protected void finalize()- Overrides:
finalize
in classDataAnnotation
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classDataAnnotation
-
find
Searches for the geometry data annotation on a give data type.- Parameters:
type
- the data type.- Returns:
- the geometry annotation found. Can be
null
if not found.
-
getPropertyPath
Returns the geometry property path for the type annotated with this annotation.- Returns:
- the geometry property path for the type annotated with this annotation.
-
hashCode
public int hashCode()Returns the hash code.- Overrides:
hashCode
in classDataAnnotation
- Returns:
- the hash code.
-
equals
- Overrides:
equals
in classDataAnnotation
-