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 newGeometryDataAnnotationinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanprotected voidfinalize()static GeometryDataAnnotationSearches for the geometry data annotation on a give data type.Returns the geometry property path for the type annotated with this annotation.inthashCode()Returns the hash code.
-
Constructor Details
-
GeometryDataAnnotation
Creates a newGeometryDataAnnotationinstance.- Parameters:
propertyPath- the path to the data property that contains the geometry.
-
-
Method Details
-
finalize
protected void finalize()- Overrides:
finalizein classDataAnnotation
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Overrides:
closein 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
nullif 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:
hashCodein classDataAnnotation- Returns:
- the hash code.
-
equals
- Overrides:
equalsin classDataAnnotation
-