Method Summary |
|
final public int | checkTransition(WMObjectState newState, boolean throwException) Returns the action required to transition to a specified state.
Parameters: newState - The new state required. Parameters: throwException - Causes an exception to be thrown if the transitionwould be illegal. |
final public int | checkTransition(int newState, boolean throwException) Returns the action required to transition to a specified state.
Parameters: newState - The new state required. Parameters: throwException - Causes an exception to be thrown if the transitionwould be illegal. |
final public boolean | equals(Object obj) Tests for object identity. |
abstract protected int[] | getActionsByState() Returns the transitions from the current state, indexed by new state.
Illegal transitions are marked by the array element value
WMObjectState.ILLEGAL_ACTION .
Array of action codes. |
final public WMObjectState[] | getStates() Returns the list of states to which legal transitions are possible. |
abstract protected int[] | getStatesByAction() Returns the transitions from the current state, indexed by action.
Illegal transitions are marked by the array element value
WMObjectState.ILLEGAL_ACTION .
Array of state codes. |
abstract protected String[] | getTags() Returns the list of all state tags applicable to this instance's class. |
final public int | getValue() JavaBean-compliant property accessor, synonym for
WMObjectState.value . |
abstract protected WMObjectState[] | getValues() Returns the list of all state values applicable to this instance's class. |
final public int | hashCode() Equal objects must have equal hash codes. |
final protected Object | readResolve() |
final protected int | stateFromAction(int action) Returns the state that would result from a specified action.
Parameters: action - Action code. |
final public String | stringValue() Returns the object state as a string. |
final public String | toString() |
final public int | value() Returns the object state as an integer. |
protected static WMObjectState | valueOf(String[] tags, WMObjectState[] values, String state) |