Interface Attribute.Type<T>

Type Parameters:
T - the attribute data type
Enclosing interface:
Attribute<T>

public static interface Attribute.Type<T>
Defines the data type of an Attribute
  • Method Details

    • valueClass

      Class<T> valueClass()
      Returns:
      the Class representing the attribute value
    • validateType

      T validateType(T value)
      Parameters:
      value - the value to validate
      Returns:
      the validated value
      Throws:
      IllegalArgumentException - in case value is of a type incompatible with this attribute
      See Also:
    • isNumerical

      boolean isNumerical()
      Returns:
      true if this attribute represents a numerical value.
    • isTemporal

      boolean isTemporal()
      Returns:
      true if this attribute represents a Temporal value.
    • isLocalDate

      boolean isLocalDate()
      Returns:
      true if this attribute represents a LocalDate value.
    • isLocalDateTime

      boolean isLocalDateTime()
      Returns:
      true if this attribute represents a LocalDateTime value.
    • isLocalTime

      boolean isLocalTime()
      Returns:
      true if this attribute represents a LocalTime value.
    • isOffsetDateTime

      boolean isOffsetDateTime()
      Returns:
      true if this attribute represents a OffsetDateTime value.
    • isCharacter

      boolean isCharacter()
      Returns:
      true if this attribute represents a Character value.
    • isString

      boolean isString()
      Returns:
      true if this attribute represents a String value.
    • isLong

      boolean isLong()
      Returns:
      true if this attribute represents a Long value.
    • isInteger

      boolean isInteger()
      Returns:
      true if this attribute represents a Integer value.
    • isShort

      boolean isShort()
      Returns:
      true if this attribute represents a Short value.
    • isDouble

      boolean isDouble()
      Returns:
      true if this attribute represents a Double value.
    • isBigDecimal

      boolean isBigDecimal()
      Returns:
      true if this attribute represents a BigDecimal value.
    • isDecimal

      boolean isDecimal()
      Returns:
      true if this attribute represents a decimal number value.
    • isBoolean

      boolean isBoolean()
      Returns:
      true if this attribute represents a Boolean value.
    • isByteArray

      boolean isByteArray()
      Returns:
      true if this attribute represents a byte array value.
    • isEnum

      boolean isEnum()
      Returns:
      true if this attribute represents an enum value.
    • isEntity

      boolean isEntity()
      Returns:
      true if this attribute represents a Entity value.