|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.danet.an.workflow.omgcore.WfExecutionObject.State
This class defines the top-hierachy possible states of a
as returned
by WfExecutionObject
.
workflowState()
Field Summary | |
static WfExecutionObject.State |
CLOSED
Reflects that the object is finished and inactive. |
static WfExecutionObject.State |
OPEN
To reflect that the object is active and not finished. |
Constructor Summary | |
protected |
WfExecutionObject.State(java.lang.String text)
Default constructor. |
Method Summary | |
static WfExecutionObject.State |
fromString(java.lang.String text)
Get a state by name. |
WfExecutionObject.State |
getParent()
Returns the parent in the state hierachy if all states defined in this class or null , if this states
are at the top level of the hierachy. |
WfExecutionObject.State |
howClosedState()
Returns the workflow substate for closed execution objects. |
boolean |
isSameOrSubState(WfExecutionObject.State s)
Checks if this state is the same state as the given state or a substate of the given state. |
protected static void |
registerState(WfExecutionObject.State state)
Register state for fromString evaluation. |
protected java.lang.String |
textRepresentation()
Return the textual representation of the state. |
java.lang.String |
toString()
Returns the string representation of the state. |
WfExecutionObject.State |
whileOpenState()
Returns the workflow substate for open execution objects. |
WfExecutionObject.State |
whyNotRunningState()
Returns the workflow substate for open, not running execution objects. |
WfExecutionObject.State |
workflowState()
Returns the workflow state, i.e. this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final WfExecutionObject.State OPEN
public static final WfExecutionObject.State CLOSED
Constructor Detail |
protected WfExecutionObject.State(java.lang.String text)
text
- Textual representation of the stateMethod Detail |
protected final java.lang.String textRepresentation()
public WfExecutionObject.State getParent()
null
, if this states
are at the top level of the hierachy.
public WfExecutionObject.State workflowState()
State
object.public WfExecutionObject.State whileOpenState()
State
object.public WfExecutionObject.State whyNotRunningState()
State
object.public WfExecutionObject.State howClosedState()
State
object.public java.lang.String toString()
protected static void registerState(WfExecutionObject.State state)
fromString
evaluation.
Additionally introduced sub-states must call this method
during their initialization if the textual representation
is to be recognized in the fromString
method.
It is up to the implementor of a derived state to assure
that the sub-state is initialized before the from String
method is called.
state
- the State
to be registered.public static WfExecutionObject.State fromString(java.lang.String text) throws InvalidStateException
text
- state name to search
InvalidStateException
- if text
is not a valid
state name.public boolean isSameOrSubState(WfExecutionObject.State s)
s
- State to compare
true
if same or sub-state
false
else.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |