public class If extends Action implements ActionsContainer
ELEM_FOREACH, ELEM_IF| Constructor and Description |
|---|
If()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAction(Action action)
Add an Action to the list of executable actions contained in
this <if>.
|
void |
execute(ActionExecutionContext exctx)
Execute this action instance.
|
List<Action> |
getActions()
Get the executable actions contained in this <if>.
|
String |
getCond()
Get the conditional expression.
|
String |
getContainerElementName()
Get the Document element type for this <container>.
|
void |
setCond(String cond)
Set the conditional expression.
|
getNamespaces, getNamespacesKey, getParent, getParentEnterableState, getTextContentIfNodeResult, setNamespaces, setParentpublic If()
public final String getContainerElementName()
ActionsContainergetContainerElementName in interface ActionsContainerpublic final List<Action> getActions()
getActions in interface ActionsContainerpublic final void addAction(Action action)
addAction in interface ActionsContaineraction - The action to add.public final void setCond(String cond)
cond - The cond to set.public void execute(ActionExecutionContext exctx) throws ModelException, SCXMLExpressionException
execute in class Actionexctx - The ActionExecutionContext for this execution instanceModelException - 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.Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.