public enum JsonDomType extends Enum<JsonDomType>
Enum Constant and Description |
---|
ARRAY
JSON array
|
BOOLEAN
JSON boolean
|
NULL
JSON null
|
NUMBER
JSON number
|
OBJECT
JSON object
|
STRING
JSON string
|
Modifier and Type | Method and Description |
---|---|
String |
getValue()
String representation of the JSON type
|
boolean |
isComplex()
Tells if this type is complex.
|
static JsonDomType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JsonDomType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsonDomType ARRAY
public static final JsonDomType BOOLEAN
public static final JsonDomType NULL
public static final JsonDomType NUMBER
public static final JsonDomType OBJECT
public static final JsonDomType STRING
public static JsonDomType[] values()
for (JsonDomType c : JsonDomType.values()) System.out.println(c);
public static JsonDomType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getValue()
public boolean isComplex()
true
if this is a complex typeCopyright © 2024. All rights reserved.