public enum JSONItemType extends java.lang.Enum<JSONItemType>
| Enum Constant and Description |
|---|
ARRAY
JSON array.
|
OBJECT
JSON object.
|
SCALAR
JSON scalar value: string, number,
true, false, or
null. |
VALUE
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
includes(JSONItemType type)
Checks whether this item type includes the specified item type.
|
static JSONItemType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JSONItemType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JSONItemType VALUE
public static final JSONItemType ARRAY
public static final JSONItemType OBJECT
public static final JSONItemType SCALAR
true, false, or
null.public static JSONItemType[] values()
for (JSONItemType c : JSONItemType.values()) System.out.println(c);
public static JSONItemType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean includes(JSONItemType type)
type - item type to check