org.datamixer.functions.datamixer
Class ForEachStrategy

java.lang.Object
  extended byorg.datamixer.functions.FunctionStrategy
      extended byorg.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.


Field Summary
 
Fields inherited from class org.datamixer.functions.FunctionStrategy
functionIterator_, logger_, result_
 
Constructor Summary
ForEachStrategy()
           
 
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 org.datamixer.functions.FunctionStrategy
doInitialize, findDataType, getDataType, getFunctionIterator, handleArguments, initialize, initResult, operate, setDataType, setFunctionIterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForEachStrategy

public ForEachStrategy()
Method Detail

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.