net.sf.xaj.support
Class AbstractSimpleParametersResolver
java.lang.Object
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
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 |
AbstractSimpleParametersResolver
public AbstractSimpleParametersResolver()
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 setvalue
- 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