|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.reuters.msgtest.load.value.DelimListValueGenerator
Selects values from a given delimlist based on a selection criteria (sequential, random, etc). This implementation is for a "," delimeted strings. TODO: generalize this.
Field Summary |
Fields inherited from interface com.reuters.msgtest.load.value.ValueGenerator |
RANDOM, SEQUENTIAL |
Constructor Summary | |
DelimListValueGenerator(java.lang.String pDelimList,
java.lang.String pSelection)
Construct a DelimListValueGenerator from a delimeted string and a criteria. |
|
DelimListValueGenerator(ValueSet pValueSet)
Construct a DelimListValueGenerator from a Valueset. |
Method Summary | |
boolean |
changeValue()
Changes the current value. |
java.lang.String |
getCurrentValue()
|
java.lang.String |
getCurrentValue(java.lang.String pSubstr)
Returns the value of the current element in this set corresponding to the given substitution string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DelimListValueGenerator(ValueSet pValueSet)
pValueSet
- the valueset object constructed from the
xml config file.public DelimListValueGenerator(java.lang.String pDelimList, java.lang.String pSelection)
pDelimList
- the comma delimeted stringpSelection
- the selection criteriaMethod Detail |
public java.lang.String getCurrentValue()
ValueGenerator.getCurrentValue(java.lang.String)
public java.lang.String getCurrentValue(java.lang.String pSubstr)
ValueGenerator
getCurrentValue
in interface ValueGenerator
pSubstr
- the substitution string
ValueGenerator.getCurrentValue(java.lang.String)
public boolean changeValue()
ValueGenerator
changeValue
in interface ValueGenerator
ValueGenerator.changeValue()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |