JSON.Parser| Enum Constant and Description |
|---|
BEGINNING |
DRAFTING |
DRAWING |
END |
LOGIN |
LOSE |
VOTING |
WIN |
| Modifier and Type | Method and Description |
|---|---|
void |
fromJSON(java.lang.Object doc)
Convert String into JSON
|
java.lang.String |
getType() |
void |
setType(java.lang.String type) |
JSONDocument |
toJSON()
Convert class into json
|
static State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final State LOGIN
public static final State BEGINNING
public static final State DRAWING
public static final State DRAFTING
public static final State VOTING
public static final State WIN
public static final State LOSE
public static final State END
public static State[] values()
for (State c : State.values()) System.out.println(c);
public static State 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 JSONDocument toJSON()
JSONpublic void fromJSON(java.lang.Object doc)
JSON