public final class GeometryDataAnnotation extends DataAnnotation implements 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.
DataPropertyPath
Constructor and Description |
---|
GeometryDataAnnotation(DataPropertyPath propertyPath)
Creates a new
GeometryDataAnnotation instance. |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
equals(Object other) |
protected void |
finalize() |
static GeometryDataAnnotation |
find(DataType type)
Searches for the geometry data annotation on a give data type.
|
DataPropertyPath |
getPropertyPath()
Returns the geometry property path for the type annotated with this annotation.
|
int |
hashCode()
Returns the hash value for this annotation.
|
public GeometryDataAnnotation(@NotNull DataPropertyPath propertyPath)
GeometryDataAnnotation
instance.propertyPath
- the path to the data property that contains the geometry.protected void finalize()
finalize
in class DataAnnotation
public void close()
close
in interface AutoCloseable
close
in class DataAnnotation
@Nullable public static GeometryDataAnnotation find(@NotNull DataType type)
type
- the data type.null
if not found.@NotNull public DataPropertyPath getPropertyPath()
public int hashCode()
hashCode
in class DataAnnotation
public boolean equals(@Nullable Object other)
equals
in class DataAnnotation