Class DataProperty

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

public final class DataProperty extends Object implements AutoCloseable
Represents a property of a DataType.

A property has a name and a value type. The value type indicates whether the value is a simple primitive or another data object.

New properties can be defined using a DataProperty.Builder (see newBuilder()).

Instances of this class are thread safe. Once an instance has been created, there is no public API to modify it.

  • Method Details Link icon

    • finalize Link icon

      protected void finalize()
      Overrides:
      finalize in class Object
    • close Link icon

      public void close()
      Specified by:
      close in interface AutoCloseable
    • newBuilder Link icon

      @NotNull public static DataProperty.Builder newBuilder()
      Creates a new DataProperty builder.
      Returns:
      a new DataProperty builder.
    • getName Link icon

      @NotNull public String getName()
      Returns the name of the data property.
      Returns:
      the name of the data property.
    • getValueType Link icon

      @NotNull public DataType getValueType()
      Returns the type of the value of this data property.
      Returns:
      the type of the value of this data property.
    • toString Link icon

      @NotNull public String toString()
      Overrides:
      toString in class Object
    • hashCode Link icon

      public int hashCode()
      Returns the hash code.
      Overrides:
      hashCode in class Object
      Returns:
      the hash code.
    • equals Link icon

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