public static enum Draft.Value extends java.lang.Enum<Draft.Value>
| Enum Constant and Description |
|---|
NO
Is not a draft.
|
YES
Is a draft.
|
| Modifier and Type | Method and Description |
|---|---|
static Draft.Value |
fromString(java.lang.String value)
Convert from a string representation of Value to an instance.
|
java.lang.String |
toString()
Returns the string representation of this instance, suitable for use in
output.
|
static Draft.Value |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Draft.Value[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Draft.Value NO
public static final Draft.Value YES
public static Draft.Value[] values()
for (Draft.Value c : Draft.Value.values()) System.out.println(c);
public static Draft.Value 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 java.lang.String toString()
toString in class java.lang.Enum<Draft.Value>public static Draft.Value fromString(java.lang.String value)
valueOf(String) this method will return null if an enum for the
given value does not exist.value - the string representation to look up.null if
none was found.