org.datamixer.functions.datamixer
Class ForEachStrategy
java.lang.Object
org.datamixer.functions.FunctionStrategy
org.datamixer.functions.datamixer.ForEachStrategy
- public class ForEachStrategy
- extends FunctionStrategy
ForEachStrategy takes a nested DatamixerIterator and optionally two
attributes: begin and end (integers). If begin and end are given, then
ForEachStrategy returns the value returned by iterator.nextValue, for
integers starting with begin and ending at end.
If begin and end are not given, then ForEachStrategy returns the value
returned by iterator.nextValue, while iterator.hasNext() is true.
|
Method Summary |
java.lang.Integer |
getBegin()
|
java.lang.Integer |
getEnd()
|
Value |
operator()
Applies an operator to the children of a Function node. |
void |
setBegin(java.lang.Integer begin)
|
void |
setEnd(java.lang.Integer end)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ForEachStrategy
public ForEachStrategy()
operator
public Value operator()
throws DatamixerException
- Description copied from class:
FunctionStrategy
- Applies an operator to the children of a Function node.
- Overrides:
operator in class FunctionStrategy
- Throws:
DatamixerException
getBegin
public java.lang.Integer getBegin()
setBegin
public void setBegin(java.lang.Integer begin)
getEnd
public java.lang.Integer getEnd()
setEnd
public void setEnd(java.lang.Integer end)
Copyright © 2004-2006 datamixer.org. All Rights Reserved.