|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.scxml.model.Action
An abstract base class for executable elements in SCXML, such as <assign>, <log> etc.
| Constructor Summary | |
Action()
Constructor. |
|
| Method Summary | |
abstract void |
execute(EventDispatcher evtDispatcher,
ErrorReporter errRep,
SCInstance scInstance,
org.apache.commons.logging.Log appLog,
Collection derivedEvents)
Execute this action instance. |
Map |
getNamespaces()
Get the XML namespaces at this action node in the SCXML document. |
protected static String |
getNamespacesKey()
Return the key under which the current document namespaces are saved in the parent state's context. |
Executable |
getParent()
Get the Executable parent. |
State |
getParentState()
Deprecated. Use getParentTransitionTarget() instead. |
TransitionTarget |
getParentTransitionTarget()
Return the TransitionTarget whose Context this action
executes in. |
void |
setNamespaces(Map namespaces)
Set the XML namespaces at this action node in the SCXML document. |
void |
setParent(Executable parent)
Set the Executable parent. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Action()
| Method Detail |
public final Executable getParent()
public final void setParent(Executable parent)
parent - The parent to set.public final Map getNamespaces()
getNamespaces in interface NamespacePrefixesHolderpublic final void setNamespaces(Map namespaces)
setNamespaces in interface NamespacePrefixesHoldernamespaces - The document namespaces.
public final State getParentState()
throws ModelException
getParentTransitionTarget() instead.
ModelException - For an unknown TransitionTarget subclass
public final TransitionTarget getParentTransitionTarget()
throws ModelException
TransitionTarget whose Context this action
executes in.
TransitionTarget
ModelException - For an unknown TransitionTarget subclass
public abstract void execute(EventDispatcher evtDispatcher,
ErrorReporter errRep,
SCInstance scInstance,
org.apache.commons.logging.Log appLog,
Collection derivedEvents)
throws ModelException,
SCXMLExpressionException
evtDispatcher - The EventDispatcher for this execution instanceerrRep - The ErrorReporter to broadcast any errors
during execution.scInstance - The state machine execution instance information.appLog - The application Log.derivedEvents - The collection to which any internal events
arising from the execution of this action
must be added.
ModelException - If the execution causes the model to enter
a non-deterministic state.
SCXMLExpressionException - If the execution involves trying
to evaluate an expression which is malformed.protected static String getNamespacesKey()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||