com.reuters.msgtest.load.value
Interface ValueGenerator
- All Known Implementing Classes:
- DelimListValueGenerator, IntRangeValueGenerator, ValueLoopGenerator
- public interface ValueGenerator
Interface for value generators from a given set.
- Version:
- @VSS_FLAG_VERSION@
- Author:
- Cavit Aydin
Method Summary |
boolean |
changeValue()
Changes the current value. |
java.lang.String |
getCurrentValue(java.lang.String substr)
Returns the value of the current element in this set
corresponding to the given substitution string. |
SEQUENTIAL
public static final java.lang.String SEQUENTIAL
- See Also:
- Constant Field Values
RANDOM
public static final java.lang.String RANDOM
- See Also:
- Constant Field Values
getCurrentValue
public java.lang.String getCurrentValue(java.lang.String substr)
throws RvTestException
- Returns the value of the current element in this set
corresponding to the given substitution string.
- Parameters:
substr
- the substitution string
- Returns:
- the current element value as string
- Throws:
RvTestException
changeValue
public boolean changeValue()
- Changes the current value. The choice
of the new element can be by any criteria implemented by
the subclasses. The return value is used as an indication
to the calling code that this set has exhausted its current
range of values. This is especially helpful for an outer loop
to detect the end of loop condition for an inner loop. For large
random sets relying on this value may not be efficient, so it should
avoided.
- Returns:
- true, if all the unique values have been exhausted and the
current value is a duplicate
Copyright © 2002-2004 The RVTest Team. All Rights Reserved.