Package dev.omnist.document
Enum Class ScalarKind
- All Implemented Interfaces:
Serializable,Comparable<ScalarKind>,Constable
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 ConstantsEnum ConstantDescriptionA boolean value (omnist-spec §2.2.1, typeboolean).A calendar date with no time component (omnist-spec §2.2.1, typedate).A date-time with an optional UTC offset (omnist-spec §2.2.1, typedatetime).An arbitrary-precision integer (omnist-spec §2.2.1, typeinteger).An IEEE-754 64-bit floating-point number, including NaN and the infinities (omnist-spec §2.2.1, typenumber).Unicode text (omnist-spec §2.2.1, typestring).A time-of-day with an optional UTC offset (omnist-spec §2.2.1, typetime). -
Method Summary
Modifier and TypeMethodDescriptionstatic ScalarKindReturns the enum constant of this class with the specified name.static ScalarKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STRING
Unicode text (omnist-spec §2.2.1, typestring). -
INTEGER
An arbitrary-precision integer (omnist-spec §2.2.1, typeinteger). -
NUMBER
An IEEE-754 64-bit floating-point number, including NaN and the infinities (omnist-spec §2.2.1, typenumber). -
BOOLEAN
A boolean value (omnist-spec §2.2.1, typeboolean). -
DATE
A calendar date with no time component (omnist-spec §2.2.1, typedate). -
TIME
A time-of-day with an optional UTC offset (omnist-spec §2.2.1, typetime). -
DATE_TIME
A date-time with an optional UTC offset (omnist-spec §2.2.1, typedatetime).
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-