Serializable, Comparable<JsonContext>public enum JsonContext extends Enum<JsonContext>
| Enum Constant | Description |
|---|---|
JSON_ARRAY |
|
JSON_OBJECT |
|
ROOT |
| Modifier and Type | Method | Description |
|---|---|---|
static JsonContext |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static JsonContext[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsonContext ROOT
public static final JsonContext JSON_OBJECT
public static final JsonContext JSON_ARRAY
public static JsonContext[] values()
for (JsonContext c : JsonContext.values()) System.out.println(c);
public static JsonContext 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 nullCopyright © 2017 Oracle Corporation. All rights reserved.