Skip navigation links
oracle.wcps.conductor.scenario.syntax
Interface IForEachStatement
- All Superinterfaces:
- ICompoundStatement, IIteratingStatement, IStatement
-
public interface IForEachStatement
- extends IIteratingStatement
Looping statement to iterate over a collection of items.
The collection expression must resolve to a java.util.Collection
or java.util.Map
to iterate. If the collection resolves to java.util.Map
, each item will resolve to java.util.Map.Entry
.
Field Summary |
static java.lang.String |
DEFAULT_VARIABLE_NAME
Specifies the default variable name to "item" if variableName is not defined. |
Method Summary |
java.lang.String |
getCollectionExpression()
Returns the expression that is used to resolve the collection within the IScenarioContext. |
java.lang.String |
getVariable()
Returns the variable name, if specified. |
void |
setCollectionExpression(java.lang.String expression)
Sets the expression that is used to resolve the collection within the IScenarioContext. |
void |
setVariable(java.lang.String variableName)
Sets the name of the variable to be used during the current iteration. |
Methods inherited from interface oracle.wcps.conductor.scenario.syntax.ICompoundStatement |
addStatement, addStatement, afterUnmarshalJson, deleteStatement, getBodyStatements, getFirstErrorMessage, getStatement, getStatementByIndex, indexOfStatement, raiseError, setBodyStatements |
Methods inherited from interface oracle.wcps.conductor.scenario.syntax.IStatement |
getComments, getContainerScenario, getErrorLevel, getErrorMessage, getId, getLabel, getNodeName, getParentStatement, getScenarioStatementIndex, getStatementIndex, raiseError, setComments, setId, setLabel |
DEFAULT_VARIABLE_NAME
static final java.lang.String DEFAULT_VARIABLE_NAME
- Specifies the default variable name to "item" if variableName is not defined.
- See Also:
- Constant Field Values
getVariable
java.lang.String getVariable()
- Returns the variable name, if specified.
setVariable
void setVariable(java.lang.String variableName)
- Sets the name of the variable to be used during the current iteration.
getCollectionExpression
java.lang.String getCollectionExpression()
- Returns the expression that is used to resolve the collection within the IScenarioContext.
setCollectionExpression
void setCollectionExpression(java.lang.String expression)
- Sets the expression that is used to resolve the collection within the IScenarioContext.
For example, ${customerList}.
Skip navigation links
Copyright © 2009, 2014, Oracle and/or its affiliates. All rights reserved.