Enum Class ScalarKind

java.lang.Object
java.lang.Enum<ScalarKind>
dev.omnist.document.ScalarKind
All Implemented Interfaces:
Serializable, Comparable<ScalarKind>, Constable

public enum ScalarKind extends Enum<ScalarKind>
The seven scalar kinds defined by omnist-spec §2.2.1. Implementations MUST NOT add or collapse kinds.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    A boolean value (omnist-spec §2.2.1, type boolean).
    A calendar date with no time component (omnist-spec §2.2.1, type date).
    A date-time with an optional UTC offset (omnist-spec §2.2.1, type datetime).
    An arbitrary-precision integer (omnist-spec §2.2.1, type integer).
    An IEEE-754 64-bit floating-point number, including NaN and the infinities (omnist-spec §2.2.1, type number).
    Unicode text (omnist-spec §2.2.1, type string).
    A time-of-day with an optional UTC offset (omnist-spec §2.2.1, type time).
  • Method Summary

    Modifier and Type
    Method
    Description
    static ScalarKind
    Returns the enum constant of this class with the specified name.
    static ScalarKind[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • STRING

      public static final ScalarKind STRING
      Unicode text (omnist-spec §2.2.1, type string).
    • INTEGER

      public static final ScalarKind INTEGER
      An arbitrary-precision integer (omnist-spec §2.2.1, type integer).
    • NUMBER

      public static final ScalarKind NUMBER
      An IEEE-754 64-bit floating-point number, including NaN and the infinities (omnist-spec §2.2.1, type number).
    • BOOLEAN

      public static final ScalarKind BOOLEAN
      A boolean value (omnist-spec §2.2.1, type boolean).
    • DATE

      public static final ScalarKind DATE
      A calendar date with no time component (omnist-spec §2.2.1, type date).
    • TIME

      public static final ScalarKind TIME
      A time-of-day with an optional UTC offset (omnist-spec §2.2.1, type time).
    • DATE_TIME

      public static final ScalarKind DATE_TIME
      A date-time with an optional UTC offset (omnist-spec §2.2.1, type datetime).
  • Method Details

    • values

      public static ScalarKind[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ScalarKind valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null