| 
 | ||||||||||
| 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.RandomStringParametersResolver
public class RandomStringParametersResolver
Resolve a random String value of a specific length.
This resolver will geneate a Map with a single String property constructed
 from random characters from within a character range between minChar
 and maxChar. If the onlyAlphaNumeric property is tru
 then only alpha-numeric characters will be generated. The length of the 
 generated String is determined by the numChars property.
The configurable properties of this class are:
0.z.Character.isLetterOrDigit(char)
   to only add characters which evaluate to true. Defaults to
   true.
| Field Summary | |
|---|---|
| static java.lang.String | DEFAULT_PARAM_NAMEThe default value for the paramNameproperty. | 
| Constructor Summary | |
|---|---|
| RandomStringParametersResolver()Default constructor. | |
| Method Summary | |
|---|---|
|  char | getMaxChar() | 
|  char | getMinChar() | 
|  int | getNumChars() | 
|  void | init()Initialize for use. | 
|  boolean | isOnlyAlphaNumeric() | 
|  java.util.Map<java.lang.String,?> | resolveParameters(int iteration)Resolve the parameters for a given iteration. | 
|  void | setMaxChar(char maxChar) | 
|  void | setMinChar(char minChar) | 
|  void | setNumChars(int numChars) | 
|  void | setOnlyAlphaNumeric(boolean onlyAlphaNumeric) | 
| 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 RandomStringParametersResolver()
| Method Detail | 
|---|
public void init()
public java.util.Map<java.lang.String,?> resolveParameters(int iteration)
XAttack.IterationParametersResolver
iteration - the iteration count
public char getMaxChar()
public void setMaxChar(char maxChar)
maxChar - the maxChar to setpublic char getMinChar()
public void setMinChar(char minChar)
minChar - the minChar to setpublic int getNumChars()
public void setNumChars(int numChars)
numChars - the numChars to setpublic boolean isOnlyAlphaNumeric()
public void setOnlyAlphaNumeric(boolean onlyAlphaNumeric)
onlyAlphaNumeric - the onlyAlphaNumeric to set| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||