Class GeometryDataAnnotation

java.lang.Object
com.luciad.datamodels.DataAnnotation
com.luciad.datamodels.GeometryDataAnnotation
All Implemented Interfaces:
AutoCloseable

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.

See Also:
  • Constructor Details

    • GeometryDataAnnotation

      public GeometryDataAnnotation(@NotNull DataPropertyPath propertyPath)
      Creates a new GeometryDataAnnotation instance.
      Parameters:
      propertyPath - the path to the data property that contains the geometry.
  • Method Details

    • finalize

      protected void finalize()
      Overrides:
      finalize in class DataAnnotation
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Overrides:
      close in class DataAnnotation
    • find

      @Nullable public static GeometryDataAnnotation find(@NotNull DataType type)
      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

      @NotNull public DataPropertyPath 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 class DataAnnotation
      Returns:
      the hash code.
    • equals

      public boolean equals(@Nullable Object other)
      Overrides:
      equals in class DataAnnotation