public static enum JSONUtil.NodeType extends Enum<JSONUtil.NodeType>
Enum Constant and Description |
---|
ARRAY |
BOOLEAN |
INTEGER |
NULL |
NUMBER |
OBJECT |
STRING |
Modifier and Type | Method and Description |
---|---|
String |
value()
This method returns the string value of the type a it would appear in
a JSON schema document.
|
static JSONUtil.NodeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JSONUtil.NodeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JSONUtil.NodeType ARRAY
public static final JSONUtil.NodeType BOOLEAN
public static final JSONUtil.NodeType INTEGER
public static final JSONUtil.NodeType NUMBER
public static final JSONUtil.NodeType NULL
public static final JSONUtil.NodeType OBJECT
public static final JSONUtil.NodeType STRING
public static JSONUtil.NodeType[] values()
for (JSONUtil.NodeType c : JSONUtil.NodeType.values()) System.out.println(c);
public static JSONUtil.NodeType 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 value()