| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| 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.  | 
 void | 
addTransition(Transition transition)
Add a transition to the map of all outgoing transitions for this state.  | 
 Map | 
getChildren()
Get the map of child states (may be empty).  | 
 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.  | 
 Map | 
getTransitions()
Deprecated. Use getTransitionsList() instead | 
 List | 
getTransitionsList()
Get the outgoing transitions for this state as a java.util.List.  | 
 List | 
getTransitionsList(String event)
Get the list of all outgoing transitions from this state, that will be candidates for being fired on the given event.  | 
 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 | 
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, getDatamodel, getHistory, getId, getOnEntry, getOnExit, getParent, getParentState, 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 Map getTransitions()
getTransitionsList() instead
public final List getTransitionsList(String event)
event - The event
public final void addTransition(Transition transition)
transition - The transitions 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 List getTransitionsList()
public final boolean isSimple()
public final boolean isComposite()
public final boolean isRegion()
Parallelpublic 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 | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||