|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.xaj.support.AbstractSimpleParametersResolver
net.sf.xaj.support.SequenceParametersResolver
public class SequenceParametersResolver
Resolve a sequence Long value.
This can be used to generate a sequence of ID values, useful for generating document IDs.
The configurable properties of this class are:
init() method must be called to initialize
the starting random number.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_PARAM_NAME
The default value for the paramName property. |
| Constructor Summary | |
|---|---|
SequenceParametersResolver()
Default constructor. |
|
| Method Summary | |
|---|---|
int |
getRandomStartFactor()
|
long |
getStartFrom()
|
void |
init()
Initialize for use. |
java.util.Map<java.lang.String,?> |
resolveParameters(int iteration)
Resolve the parameters for a given iteration. |
void |
setRandomStartFactor(int randomStartFactor)
|
void |
setStartFrom(long startFrom)
|
| Methods inherited from class net.sf.xaj.support.AbstractSimpleParametersResolver |
|---|
getParamName, resolveSimpleMap, resolveSimpleMap, setParamName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_PARAM_NAME
paramName property.
| Constructor Detail |
|---|
public SequenceParametersResolver()
| Method Detail |
|---|
public void init()
public java.util.Map<java.lang.String,?> resolveParameters(int iteration)
XAttack.IterationParametersResolver
iteration - the iteration count
public int getRandomStartFactor()
public void setRandomStartFactor(int randomStartFactor)
randomStartFactor - the randomStartFactor to setpublic long getStartFrom()
public void setStartFrom(long startFrom)
startFrom - the startFrom to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||