Interface DataAttributesBase

All Known Implementing Classes:
DataAttributes, DataAttributesAccessor

public interface DataAttributesBase

Interface for a collection of data attributes.

Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.

  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the value of an attribute as a string or null if it is not contained.
    Returns a list of attribute names.
    Gets the value of a boolean attribute or null if it is not contained or the type doesn't match.
    Gets the value of a double precision floating decimal attribute or null if it is not contained or the type doesn't match.
    Gets the value of a single precision floating decimal attribute or null if it is not contained or the type doesn't match.
    Gets the value of a 64-bits integer attribute or null if it is not contained or the type doesn't match.
    Gets the value of a string attribute or null if it is not contained or the type doesn't match.
    Gets the DataAttributeValue or null if it is not contained.
    Returns the value type of an attribute or null if it is not contained.
  • Method Details

    • getAttributeNames

      @NonNull List<String> getAttributeNames()

      Returns a list of attribute names.

      Returns:

      The list of attribute names.

    • getValueType

      @Nullable DataAttributeValue.ValueType getValueType(@NonNull String name)

      Returns the value type of an attribute or null if it is not contained.

      Parameters:
      name -

      Attribute name.

      Returns:

      Attribute value type or null if it is not contained.

    • getAsString

      @Nullable String getAsString(@NonNull String name)

      Gets the value of an attribute as a string or null if it is not contained.

      Parameters:
      name -

      Attribute name.

      Returns:

      Attribute value.

    • getString

      @Nullable String getString(@NonNull String name)

      Gets the value of a string attribute or null if it is not contained or the type doesn't match.

      Parameters:
      name -

      Attribute name.

      Returns:

      Attribute value.

    • getInt64

      @Nullable Long getInt64(@NonNull String name)

      Gets the value of a 64-bits integer attribute or null if it is not contained or the type doesn't match.

      Parameters:
      name -

      Attribute name.

      Returns:

      Attribute value.

    • getFloat

      @Nullable Float getFloat(@NonNull String name)

      Gets the value of a single precision floating decimal attribute or null if it is not contained or the type doesn't match.

      Parameters:
      name -

      Attribute name.

      Returns:

      Attribute value.

    • getDouble

      @Nullable Double getDouble(@NonNull String name)

      Gets the value of a double precision floating decimal attribute or null if it is not contained or the type doesn't match.

      Parameters:
      name -

      Attribute name.

      Returns:

      Attribute value.

    • getBoolean

      @Nullable Boolean getBoolean(@NonNull String name)

      Gets the value of a boolean attribute or null if it is not contained or the type doesn't match.

      Parameters:
      name -

      Attribute name.

      Returns:

      Attribute value.

    • getValue

      @Nullable DataAttributeValue getValue(@NonNull String name)

      Gets the DataAttributeValue or null if it is not contained.

      Parameters:
      name -

      Attribute name.

      Returns:

      Attribute value.