Enum ValueDef.JsonType
- All Implemented Interfaces:
Serializable
,Comparable<ValueDef.JsonType>
- Enclosing class:
- ValueDef
Description of JSON types as derived from JSON tokens.
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isObject()
boolean
isScalar()
boolean
static ValueDef.JsonType
Returns the enum constant of this type with the specified name.static ValueDef.JsonType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OBJECT
-
NULL
-
BOOLEAN
-
INTEGER
-
FLOAT
-
STRING
-
EMBEDDED_OBJECT
-
EMPTY
Indicates an empty array. -
UNKNOWN
Indicates an unknown array, appears when replacing the value listener for an array.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
isObject
public boolean isObject() -
isUnknown
public boolean isUnknown() -
isScalar
public boolean isScalar()
-