public abstract class Action extends Object implements NamespacePrefixesHolder, Serializable
Constructor and Description |
---|
Action()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public final Executable getParent()
public final void setParent(Executable parent)
parent
- The parent to set.public final Map getNamespaces()
getNamespaces
in interface NamespacePrefixesHolder
public final void setNamespaces(Map namespaces)
setNamespaces
in interface NamespacePrefixesHolder
namespaces
- The document namespaces.public final State getParentState() throws ModelException
getParentTransitionTarget()
instead.ModelException
- For an unknown TransitionTarget subclasspublic final TransitionTarget getParentTransitionTarget() throws ModelException
TransitionTarget
whose Context
this action
executes in.TransitionTarget
ModelException
- For an unknown TransitionTarget subclasspublic 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()
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.