|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.scxml.model.Action
public abstract class 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,
java.util.Collection derivedEvents)
Execute this action instance. |
java.util.Map |
getNamespaces()
Get the XML namespaces at this action node in the SCXML document. |
protected static java.lang.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()
Return the parent state. |
void |
setNamespaces(java.util.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 java.util.Map getNamespaces()
getNamespaces in interface NamespacePrefixesHolderpublic final void setNamespaces(java.util.Map namespaces)
setNamespaces in interface NamespacePrefixesHoldernamespaces - The document namespaces.
public final State getParentState()
throws ModelException
ModelException - For an unknown TransitionTarget subclass
public abstract void execute(EventDispatcher evtDispatcher,
ErrorReporter errRep,
SCInstance scInstance,
org.apache.commons.logging.Log appLog,
java.util.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 java.lang.String getNamespacesKey()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||