public enum AcceptorState extends java.lang.Enum<AcceptorState> implements ToNode
Enum Constant and Description |
---|
FAILURE
Transition to a final failure state.
|
RETRY
Transition to an intermediate retry state.
|
SUCCESS
Transition to a final success state.
|
Modifier and Type | Method and Description |
---|---|
static AcceptorState |
fromNode(Node node)
Create an AcceptorState from a Node.
|
Node |
toNode()
Converts a value to a
Node . |
java.lang.String |
toString() |
static AcceptorState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AcceptorState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AcceptorState SUCCESS
public static final AcceptorState FAILURE
public static final AcceptorState RETRY
public static AcceptorState[] values()
for (AcceptorState c : AcceptorState.values()) System.out.println(c);
public static AcceptorState 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<AcceptorState>
public static AcceptorState fromNode(Node node)
node
- Node to create the AcceptorState from.ExpectationNotMetException
- when given an invalid Node.