org.malai.action
Enum Action.ActionStatus

java.lang.Object
  extended by java.lang.Enum<Action.ActionStatus>
      extended by org.malai.action.Action.ActionStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Action.ActionStatus>
Enclosing class:
Action

public static enum Action.ActionStatus
extends java.lang.Enum<Action.ActionStatus>

Defines the different state of the action. @since 0.2


Enum Constant Summary
ABORTED
          When the action has been aborted.
CREATED
          When the action is created but not executed yet.
DONE
          When the action has been defined as done.
EXECUTED
          When the action has been created and executed one time.
FLUSHED
          The the action has been flushed.
 
Method Summary
static Action.ActionStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Action.ActionStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CREATED

public static final Action.ActionStatus CREATED
When the action is created but not executed yet.


EXECUTED

public static final Action.ActionStatus EXECUTED
When the action has been created and executed one time.


ABORTED

public static final Action.ActionStatus ABORTED
When the action has been aborted.


DONE

public static final Action.ActionStatus DONE
When the action has been defined as done.


FLUSHED

public static final Action.ActionStatus FLUSHED
The the action has been flushed. In this case, the action cannot be used anymore.

Method Detail

values

public static Action.ActionStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Action.ActionStatus c : Action.ActionStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Action.ActionStatus valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null