|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.scxml.model.Action | +--org.apache.commons.scxml.model.If
The class in this SCXML object model that corresponds to the <if> SCXML element, which serves as a container for conditionally executed elements. <else> and <elseif> can optionally appear within an <if> as immediate children, and serve to partition the elements within an <if>.
Constructor Summary | |
---|---|
If()
Constructor. |
Method Summary | |
---|---|
void |
addAction(Action action)
Add an Action to the list of executable actions contained in this <if>. |
void |
execute(EventDispatcher evtDispatcher,
ErrorReporter errRep,
SCInstance scInstance,
org.apache.commons.logging.Log appLog,
Collection derivedEvents)
Execute this action instance. |
List |
getActions()
Get the executable actions contained in this <if>. |
String |
getCond()
Get the conditional expression. |
void |
setCond(String cond)
Set the conditional expression. |
Methods inherited from class org.apache.commons.scxml.model.Action |
---|
getParent, getParentState, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public If()
Method Detail |
public final List getActions()
public final void addAction(Action action)
action
- The action to add.public final String getCond()
public final void setCond(String cond)
cond
- The cond to set.public void execute(EventDispatcher evtDispatcher, ErrorReporter errRep, SCInstance scInstance, org.apache.commons.logging.Log appLog, Collection derivedEvents) throws ModelException, SCXMLExpressionException
execute
in class Action
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.
SCXMLExpressionException
- If the execution involves trying
to evaluate an expression which is malformed.
ModelException
- If the execution causes the model to enter
a non-deterministic state.
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |