org.pm4j.core.pm
Enum PmCommand.CommandState

java.lang.Object
  extended by java.lang.Enum<PmCommand.CommandState>
      extended by org.pm4j.core.pm.PmCommand.CommandState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PmCommand.CommandState>
Enclosing interface:
PmCommand

public static enum PmCommand.CommandState
extends java.lang.Enum<PmCommand.CommandState>


Enum Constant Summary
BEFORE_DO_RETURNED_FALSE
          The doItImpl method was not executed because the beforeDo logic returned false.
CLONED
          The initial state of a command execution clone instance.
EXECUTED
          The doItImpl method of the command was successfully executed.
FAILED
          The execution of the command failed with an exception.
TEMPLATE
          The command is just a template for command clones to be executed.
 
Method Summary
static PmCommand.CommandState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PmCommand.CommandState[] 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

TEMPLATE

public static final PmCommand.CommandState TEMPLATE
The command is just a template for command clones to be executed.


CLONED

public static final PmCommand.CommandState CLONED
The initial state of a command execution clone instance.


BEFORE_DO_RETURNED_FALSE

public static final PmCommand.CommandState BEFORE_DO_RETURNED_FALSE
The doItImpl method was not executed because the beforeDo logic returned false.


EXECUTED

public static final PmCommand.CommandState EXECUTED
The doItImpl method of the command was successfully executed.


FAILED

public static final PmCommand.CommandState FAILED
The execution of the command failed with an exception.

Method Detail

values

public static PmCommand.CommandState[] 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 (PmCommand.CommandState c : PmCommand.CommandState.values())
    System.out.println(c);

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

valueOf

public static PmCommand.CommandState 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