net.sf.xaj.support
Class AbstractSimpleParametersResolver

java.lang.Object
  extended by net.sf.xaj.support.AbstractSimpleParametersResolver
All Implemented Interfaces:
XAttack.IterationParametersResolver
Direct Known Subclasses:
DateParametersResolver, RandomBooleanParametersResolver, RandomSetParametersResolver, RandomStringParametersResolver, SequenceParametersResolver

public abstract class AbstractSimpleParametersResolver
extends java.lang.Object
implements XAttack.IterationParametersResolver

Base class for XAttack.IterationParametersResolver implementations that resolve a simple parameter.

The configurable properties of this class are:

paramName
The parameter name to use. Defaults to param.

Version:
$Revision: 51 $ $Date: 2007-10-09 19:04:12 +1300 (Tue, 09 Oct 2007) $
Author:
matt

Constructor Summary
AbstractSimpleParametersResolver()
           
 
Method Summary
 java.lang.String getParamName()
           
protected  java.util.Map<java.lang.String,java.lang.Object> resolveSimpleMap(java.lang.Object value)
          Resolve a Map from the configured paramName and a value.
protected  java.util.Map<java.lang.String,java.lang.Object> resolveSimpleMap(java.lang.String key, java.lang.Object value)
          Resolve a Map from a single key/value pair.
 void setParamName(java.lang.String paramName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.xaj.support.XAttack.IterationParametersResolver
resolveParameters
 

Constructor Detail

AbstractSimpleParametersResolver

public AbstractSimpleParametersResolver()
Method Detail

resolveSimpleMap

protected java.util.Map<java.lang.String,java.lang.Object> resolveSimpleMap(java.lang.Object value)
Resolve a Map from the configured paramName and a value.

Parameters:
value - the value to set
Returns:
the Map populated with the the getParamName() key and given value

resolveSimpleMap

protected java.util.Map<java.lang.String,java.lang.Object> resolveSimpleMap(java.lang.String key,
                                                                            java.lang.Object value)
Resolve a Map from a single key/value pair.

Parameters:
key - the key to set
value - the value to set
Returns:
the Map populated with the given key/value pair

getParamName

public java.lang.String getParamName()
Returns:
the paramName

setParamName

public void setParamName(java.lang.String paramName)
Parameters:
paramName - the paramName to set