|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.scxml.model.TransitionTarget
org.apache.commons.scxml.model.State
public class State
The class in this SCXML object model that corresponds to the <state> SCXML element.
Constructor Summary | |
---|---|
State()
Constructor. |
Method Summary | |
---|---|
void |
addChild(State state)
Deprecated. Use addChild(TransitionTarget) instead. |
void |
addChild(TransitionTarget tt)
Add a child transition target. |
Map |
getChildren()
Get the map of child states (may be empty). |
String |
getFirst()
Get the initial state's ID. |
Initial |
getInitial()
Get the initial state. |
Invoke |
getInvoke()
Get the Invoke child (may be null). |
boolean |
getIsFinal()
Deprecated. Use isFinal() instead |
Parallel |
getParallel()
Deprecated. <parallel> no longer needs an enclosing <state> element. |
boolean |
isComposite()
Check whether this is a composite state (UML terminology). |
boolean |
isDone()
Deprecated. Will be removed in v1.0, in favor of SCInstance#isDone(TransitionTarget) |
boolean |
isFinal()
Is this state a "final" state. |
boolean |
isOrthogonal()
Deprecated. <parallel> now represents an orthogonal state, rather than denoting that the enclosing state is orthogonal, as it did in previous SCXML WDs. |
boolean |
isRegion()
Checks whether it is a region state (directly nested to parallel - UML terminology). |
boolean |
isSimple()
Check whether this is a simple (leaf) state (UML terminology). |
void |
setDone(boolean done)
Deprecated. Will be removed in v1.0, in favor of SCInstance#setDone(TransitionTarget) |
void |
setFinal(boolean isFinal)
Set whether this is a "final" state. |
void |
setFirst(String target)
Set the initial state by its ID string. |
void |
setInitial(Initial target)
Set the initial state. |
void |
setInvoke(Invoke invoke)
Set the Invoke child. |
void |
setIsFinal(boolean isFinal)
Deprecated. Use setFinal(boolean) instead |
void |
setParallel(Parallel parallel)
Deprecated. <parallel> no longer needs an enclosing <state> element. |
Methods inherited from class org.apache.commons.scxml.model.TransitionTarget |
---|
addHistory, addTransition, getDatamodel, getHistory, getId, getOnEntry, getOnExit, getParent, getParentState, getTransitions, getTransitionsList, getTransitionsList, hasHistory, setDatamodel, setId, setOnEntry, setOnExit, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public State()
Method Detail |
---|
public final boolean getIsFinal()
isFinal()
instead
public final void setIsFinal(boolean isFinal)
setFinal(boolean)
instead
isFinal
- The isFinal to set.public final boolean isFinal()
public final void setFinal(boolean isFinal)
isFinal
- The isFinal to set.public final Parallel getParallel()
public final void setParallel(Parallel parallel)
parallel
- The parallel to set.public final Invoke getInvoke()
public final void setInvoke(Invoke invoke)
invoke
- The invoke to set.public final Initial getInitial()
public final void setInitial(Initial target)
target
- The target to set.public final String getFirst()
public final void setFirst(String target)
target
- The initial target's ID to set.public final Map getChildren()
public final void addChild(State state)
addChild(TransitionTarget)
instead.
state
- a child statepublic final void addChild(TransitionTarget tt)
tt
- a child transition targetpublic final boolean isSimple()
public final boolean isComposite()
public final boolean isRegion()
Parallel
public final boolean isOrthogonal()
public final boolean isDone()
SCInstance#isDone(TransitionTarget)
public final void setDone(boolean done)
SCInstance#setDone(TransitionTarget)
done
- The done to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |