public class Foreach extends Action implements ActionsContainer
ELEM_FOREACH, ELEM_IF
Constructor and Description |
---|
Foreach() |
Modifier and Type | Method and Description |
---|---|
void |
addAction(Action action)
Add an Action to the list of executable actions contained in
this <container>.
|
void |
execute(ActionExecutionContext exctx)
Execute this action instance.
|
List<Action> |
getActions()
Get the executable actions contained in this <container>.
|
String |
getArray() |
String |
getContainerElementName()
Get the Document element type for this <container>.
|
String |
getIndex() |
String |
getItem() |
void |
setArray(String array) |
void |
setIndex(String index) |
void |
setItem(String item) |
getNamespaces, getNamespacesKey, getParent, getParentEnterableState, getTextContentIfNodeResult, setNamespaces, setParent
public Foreach()
public final String getContainerElementName()
ActionsContainer
getContainerElementName
in interface ActionsContainer
public final List<Action> getActions()
ActionsContainer
getActions
in interface ActionsContainer
public final void addAction(Action action)
ActionsContainer
addAction
in interface ActionsContainer
action
- The action to add.public void execute(ActionExecutionContext exctx) throws ModelException, SCXMLExpressionException
execute
in class Action
exctx
- 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.