|
||||||||||
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
public abstract class TransitionTarget
An abstract base class for elements in SCXML that can serve as a <target> for a <transition>, such as State or Parallel.
Constructor Summary | |
---|---|
TransitionTarget()
Constructor. |
Method Summary | |
---|---|
void |
addHistory(History h)
This method is used by XML digester. |
void |
addTransition(Transition transition)
Add a transition to the map of all outgoing transitions for this transition target. |
Datamodel |
getDatamodel()
Get the data model for this transition target. |
List |
getHistory()
Get the list of history pseudo states for this state. |
String |
getId()
Get the identifier for this transition target (may be null). |
OnEntry |
getOnEntry()
Get the onentry property. |
OnExit |
getOnExit()
Get the onexit property. |
TransitionTarget |
getParent()
Get the parent TransitionTarget. |
State |
getParentState()
Deprecated. Will be removed in v1.0 |
Map |
getTransitions()
Deprecated. Use getTransitionsList() instead |
List |
getTransitionsList()
Get the outgoing transitions for this target as a java.util.List. |
List |
getTransitionsList(String event)
Get the list of all outgoing transitions from this target, that will be candidates for being fired on the given event. |
boolean |
hasHistory()
Does this state have a history pseudo state. |
void |
setDatamodel(Datamodel datamodel)
Set the data model for this transition target. |
void |
setId(String id)
Set the identifier for this transition target. |
void |
setOnEntry(OnEntry onEntry)
Set the onentry property. |
void |
setOnExit(OnExit onExit)
Set the onexit property. |
void |
setParent(TransitionTarget parent)
Set the parent TransitionTarget. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransitionTarget()
Method Detail |
---|
public final String getId()
public final void setId(String id)
id
- The id to set.public final OnEntry getOnEntry()
public final void setOnEntry(OnEntry onEntry)
onEntry
- The onEntry to set.public final OnExit getOnExit()
public final void setOnExit(OnExit onExit)
onExit
- The onExit to set.public final Datamodel getDatamodel()
public final void setDatamodel(Datamodel datamodel)
datamodel
- The Datamodel to set.public final TransitionTarget getParent()
public final void setParent(TransitionTarget parent)
parent
- The parent state to setpublic final State getParentState()
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 List getTransitionsList()
public final void addHistory(History h)
h
- History pseudo statepublic final boolean hasHistory()
public final List getHistory()
hasHistory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |