net.sf.xaj.support
Class XAttackDelegatingParametersResolver

java.lang.Object
  extended by net.sf.xaj.support.XAttackDelegatingParametersResolver
All Implemented Interfaces:
XAttack.IterationParametersResolver

public class XAttackDelegatingParametersResolver
extends java.lang.Object
implements XAttack.IterationParametersResolver

Implementation of XAttack.IterationParametersResolver for generating XSLT input parameters for XAttack that delegates to a list of other XAttack.IterationParametersResolver implementations.

This allows a series of XAttack.IterationParametersResolver implementations to be chained together, so each individual implementation can focus on specific tasks.

Version:
$Revision$ $Date$
Author:
matt

Constructor Summary
XAttackDelegatingParametersResolver()
           
 
Method Summary
 java.util.List<XAttack.IterationParametersResolver> getChain()
           
 java.util.Map<java.lang.String,?> resolveParameters(int iteration)
          Resolve the parameters for a given iteration.
 void setChain(java.util.List<XAttack.IterationParametersResolver> chain)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XAttackDelegatingParametersResolver

public XAttackDelegatingParametersResolver()
Method Detail

resolveParameters

public java.util.Map<java.lang.String,?> resolveParameters(int iteration)
Description copied from interface: XAttack.IterationParametersResolver
Resolve the parameters for a given iteration.

Specified by:
resolveParameters in interface XAttack.IterationParametersResolver
Parameters:
iteration - the iteration count
Returns:
Map of parameter values

getChain

public java.util.List<XAttack.IterationParametersResolver> getChain()
Returns:
the chain

setChain

public void setChain(java.util.List<XAttack.IterationParametersResolver> chain)
Parameters:
chain - the chain to set