|
IBM Rational Functional Tester Version 8.1.1000 IBM Rational Functional Tester API Reference Project Version 2.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.rational.test.ft.datapool.BaseDatapoolIterator
public abstract class BaseDatapoolIterator
The base class for the predefined RFT datapool iterators. Users writing their own iterator classes should consider using this class for default support.
Field Summary | |
---|---|
protected IDatapool |
datapool
|
protected IDatapoolEquivalenceClass |
equivalenceClass
|
protected int |
equivalenceClassIndex
|
Fields inherited from interface org.eclipse.hyades.execution.runtime.datapool.IDatapoolIterator |
---|
RANDOM_SEED, WRAP |
Constructor Summary | |
---|---|
BaseDatapoolIterator()
|
Method Summary | |
---|---|
boolean |
dpBoolean(int variableIndex)
Shortcut to the int value in the cell in the current record and the specified variable index is returned. |
boolean |
dpBoolean(java.lang.String variableName)
Shortcut to the boolean value in the cell in the current row and the specified variable name is returned. |
byte |
dpByte(int variableIndex)
Shortcut to the byte value in the cell in the current record and the specified variable index is returned. |
byte |
dpByte(java.lang.String variableName)
Shortcut to the byte value in the cell in the current row and the specified variable name is returned. |
char |
dpChar(int variableIndex)
Shortcut to the int value in the cell in the current record and the specified variable index is returned. |
char |
dpChar(java.lang.String variableName)
Shortcut to the char value in the cell in the current row and the specified variable name is returned. |
abstract IDatapoolRecord |
dpCurrent()
The record currently available from this iterator for the associated instance of the datapool. |
abstract boolean |
dpDone()
Returns true if the current iterator value is null . |
double |
dpDouble(int variableIndex)
Shortcut to the double value in the cell in the current record and the specified variable index is returned. |
double |
dpDouble(java.lang.String variableName)
Shortcut to the double value in the cell in the current row and the specified variable name is returned. |
float |
dpFloat(int variableIndex)
Shortcut to the float value in the cell in the current record and the specified variable index is returned. |
float |
dpFloat(java.lang.String variableName)
Shortcut to the float value in the cell in the current row and the specified variable name is returned. |
void |
dpInitialize(IDatapool datapool)
This method acts the same way as dpInitialize with equivalence class specification
except that default
equivalence class is used. |
void |
dpInitialize(IDatapool datapool, int equivalenceClassIndex)
Initialize the iterator sequence from the specified datapool object. |
int |
dpInt(int variableIndex)
Shortcut to the int value in the cell in the current record and the specified variable index is returned. |
int |
dpInt(java.lang.String variableName)
Shortcut to the int value in the cell in the current row and the specified variable name is returned. |
long |
dpLong(int variableIndex)
Shortcut to the long value in the cell in the current record and the specified variable index is returned. |
long |
dpLong(java.lang.String variableName)
Shortcut to the long value in the cell in the current row and the specified variable name is returned. |
abstract void |
dpNext()
Increments the iterator associated with an instance of the datapool. |
abstract void |
dpReset()
Restart the iterator associated with an instance of the datapool. |
short |
dpShort(int variableIndex)
Shortcut to the short value in the cell in the current record and the specified variable index is returned. |
short |
dpShort(java.lang.String variableName)
Shortcut to the short value in the cell in the current row and the specified variable name is returned. |
java.lang.String |
dpString(int variableIndex)
Shortcut to the String value in the cell in the current record and the specified variable index is returned. |
java.lang.String |
dpString(java.lang.String variableName)
Shortcut to the String value in the cell in the current record and the specified variable name is returned. |
java.lang.Object |
dpValue(int variableIndex)
Shortcut to the value in the cell in the current record and the specified variable index is returned. |
java.lang.Object |
dpValue(java.lang.String variableName)
Shortcut to the value in the cell in the current record and the specified variable name is returned. |
IDatapoolCell |
getCell(int variableIndex)
|
IDatapoolCell |
getCell(java.lang.String variableName)
|
IDatapool |
getDatapool()
The datapool being iterated over. |
protected IDatapoolEquivalenceClass |
getEquivalenceClass()
|
java.lang.Object |
getProperty(java.lang.String property)
Returns the Object associated with the specified property name. |
void |
setDatapool(java.lang.String variableName, java.lang.Object value)
|
void |
setProperty(java.lang.String property, java.lang.Object value)
Sets the property with the specified name with a value captued in the Object . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected IDatapool datapool
protected int equivalenceClassIndex
protected IDatapoolEquivalenceClass equivalenceClass
Constructor Detail |
---|
public BaseDatapoolIterator()
Method Detail |
---|
public void dpInitialize(IDatapool datapool, int equivalenceClassIndex)
IDatapoolIterator
dpInitialize
in interface IDatapoolIterator
datapool
- The datapool to iterate over.equivalenceClassIndex
- The zero-based index of the equivalence class that should be iterated over. If this value is negative then all records in the datapool should be will be available to the iterator.public void dpInitialize(IDatapool datapool)
IDatapoolIterator
dpInitialize with equivalence class specification
except that default
equivalence class is used.
dpInitialize
in interface IDatapoolIterator
datapool
- The datapool to iterate over.public IDatapool getDatapool()
IDatapoolIterator
null
is returned.
getDatapool
in interface IDatapoolIterator
public abstract IDatapoolRecord dpCurrent()
IDatapoolIterator
next method
. A value of null
is
returned when the iterator is out of values.
dpCurrent
in interface IDatapoolIterator
null
.IDatapoolIterator.dpNext()
,
IDatapoolIterator.dpDone()
,
IDatapoolIterator.dpReset()
public abstract boolean dpDone()
IDatapoolIterator
true
if the current
iterator value is null
.
dpDone
in interface IDatapoolIterator
IDatapoolIterator.dpCurrent()
,
IDatapoolIterator.dpNext()
,
IDatapoolIterator.dpReset()
public abstract void dpNext()
IDatapoolIterator
dpNext
in interface IDatapoolIterator
IDatapoolIterator.dpCurrent()
,
IDatapoolIterator.dpDone()
,
IDatapoolIterator.dpReset()
public abstract void dpReset()
IDatapoolIterator
dpReset
in interface IDatapoolIterator
IDatapoolIterator.dpCurrent()
,
IDatapoolIterator.dpDone()
,
IDatapoolIterator.dpNext()
public java.lang.Object dpValue(int variableIndex)
IDatapoolIterator
current
record and the specified variable index is returned. The variable index is the specified zero
based index for the cell.
dpValue
in interface IDatapoolIterator
variableIndex
- The zero based index of the cell in the record.
current
record and at the specified index.IDatapoolIterator.dpValue(String)
public java.lang.Object dpValue(java.lang.String variableName)
IDatapoolIterator
current
record and the specified variable name is returned.
dpValue
in interface IDatapoolIterator
variableName
- The variable name to locate the cell by.
current
record and the specified variable name.IDatapoolIterator.dpValue(int)
public java.lang.String dpString(int variableIndex)
IDatapoolIterator
String
value in the cell in the current
record and the specified variable index is returned. The variable index is the specified zero
based index for the cell.
dpString
in interface IDatapoolIterator
variableIndex
- The zero based index of the cell in the record.
current
record and at the specified index.IDatapoolIterator.dpString(String)
public java.lang.String dpString(java.lang.String variableName)
IDatapoolIterator
String
value in the cell in the current
record and the specified variable name is returned.
If the value in the cell is not a String
value then it is converted to a String
before being returned.
dpString
in interface IDatapoolIterator
variableName
- The valiable name to locate the cell by.
String
value in the cell in the current
record and the specified variable name.IDatapoolIterator.dpString(int)
public long dpLong(int variableIndex)
IDatapoolIterator
long
value in the cell in the current
record and the specified variable index is returned. The variable index is the specified zero
based index for the cell.
dpLong
in interface IDatapoolIterator
variableIndex
- The zero based index of the cell in the record.
current
record and at the specified index.IDatapoolIterator.dpLong(String)
public long dpLong(java.lang.String variableName)
IDatapoolIterator
long
value in the cell in the current
row and the specified variable name is returned.
If the value in the cell is not a long
value then an attempt is made to convert the value to a long
. If the value can not be converted a java.lang.NumberFormatException
will be thrown.
dpLong
in interface IDatapoolIterator
variableName
- The variable name to locate the cell by.
long
value in the cell in the current
row and the specified variable name.IDatapoolIterator.dpLong(int)
public int dpInt(int variableIndex)
IDatapoolIterator
int
value in the cell in the current
record and the specified variable index is returned. The variable index is the specified zero
based index for the cell.
If the value in the cell is not a int
value then an attempt is made to convert the value to a int
. If the value can not be converted a java.lang.NumberFormatException
will be thrown.
dpInt
in interface IDatapoolIterator
variableIndex
- The zero based index of the cell in the record.
int
value in the cell in the current
record and at the specified index.IDatapoolIterator.dpInt(String)
public int dpInt(java.lang.String variableName)
IDatapoolIterator
int
value in the cell in the current
row and the specified variable name is returned.
If the value in the cell is not a int
value then an attempt is made to convert the value to a int
. If the value can not be converted a java.lang.NumberFormatException
will be thrown.
dpInt
in interface IDatapoolIterator
variableName
- The variable name to locate the cell by.
int
value in the cell in the current
row and the specified variable name.IDatapoolIterator.dpInt(int)
public short dpShort(int variableIndex)
IDatapoolIterator
short
value in the cell in the current
record and the specified variable index is returned. The variable index is the specified zero
based index for the cell.
If the value in the cell is not a short
value then an attempt is made to convert the value to a short
. If the value can not be converted a java.lang.NumberFormatException
will be thrown.
dpShort
in interface IDatapoolIterator
variableIndex
- The zero based index of the cell in the record.
short
value in the cell in the current
record and at the specified index.IDatapoolIterator.dpShort(String)
public short dpShort(java.lang.String variableName)
IDatapoolIterator
short
value in the cell in the current
row and the specified variable name is returned.
If the value in the cell is not a short
value then an attempt is made to convert the value to a short
. If the value can not be converted a java.lang.NumberFormatException
will be thrown.
dpShort
in interface IDatapoolIterator
variableName
- The variable name to locate the cell by.
short
value in the cell in the current
row and the specified variable name.IDatapoolIterator.dpShort(int)
public byte dpByte(int variableIndex)
IDatapoolIterator
byte
value in the cell in the current
record and the specified variable index is returned. The variable index is the specified zero
based index for the cell.
If the value in the cell is not a byte
value then an attempt is made to convert the value to a byte
. If the value can not be converted a java.lang.NumberFormatException
will be thrown.
dpByte
in interface IDatapoolIterator
variableIndex
- The zero based index of the cell in the record.
byte
value in the cell in the current
record and at the specified index.IDatapoolIterator.dpByte(String)
public byte dpByte(java.lang.String variableName)
IDatapoolIterator
byte
value in the cell in the current
row and the specified variable name is returned.
If the value in the cell is not a byte
value then an attempt is made to convert the value to a byte
. If the value can not be converted a java.lang.NumberFormatException
will be thrown.
dpByte
in interface IDatapoolIterator
variableName
- The variable name to locate the cell by.
byte
value in the cell in the current
row and the specified variable name.IDatapoolIterator.dpByte(int)
public double dpDouble(int variableIndex)
IDatapoolIterator
double
value in the cell in the current
record and the specified variable index is returned. The variable index is the specified zero
based index for the cell.
If the value in the cell is not a double
value then an attempt is made to convert the value to a double
. If the value can not be converted a java.lang.NumberFormatException
will be thrown.
dpDouble
in interface IDatapoolIterator
variableIndex
- The zero based index of the cell in the record.
double
value in the cell in the current
record and at the specified index.IDatapoolIterator.dpDouble(String)
public double dpDouble(java.lang.String variableName)
IDatapoolIterator
double
value in the cell in the current
row and the specified variable name is returned.
If the value in the cell is not a double
value then an attempt is made to convert the value to a double
. If the value can not be converted a java.lang.NumberFormatException
will be thrown.
dpDouble
in interface IDatapoolIterator
variableName
- The variable name to locate the cell by.
double
value in the cell in the current
row and the specified variable name.IDatapoolIterator.dpDouble(int)
public float dpFloat(int variableIndex)
IDatapoolIterator
float
value in the cell in the current
record and the specified variable index is returned. The variable index is the specified zero
based index for the cell.
If the value in the cell is not a float
value then an attempt is made to convert the value to a float
. If the value can not be converted a java.lang.NumberFormatException
will be thrown.
dpFloat
in interface IDatapoolIterator
variableIndex
- The zero based index of the cell in the record.
float
value in the cell in the current
record and at the specified index.IDatapoolIterator.dpFloat(String)
public float dpFloat(java.lang.String variableName)
IDatapoolIterator
float
value in the cell in the current
row and the specified variable name is returned.
If the value in the cell is not a float
value then an attempt is made to convert the value to a float
. If the value can not be converted a java.lang.NumberFormatException
will be thrown.
dpFloat
in interface IDatapoolIterator
variableName
- The variable name to locate the cell by.
float
value in the cell in the current
row and the specified variable name.IDatapoolIterator.dpFloat(int)
public boolean dpBoolean(int variableIndex)
IDatapoolIterator
int
value in the cell in the current
record and the specified variable index is returned. The variable index is the specified zero
based index for the cell.
If the value in the cell is not a boolean
value then an attempt is made to convert the value to a boolean
. If the value can not be converted an appropriate exception will be thrown.
dpBoolean
in interface IDatapoolIterator
variableIndex
- The zero based index of the cell in the record.
boolean
value in the cell in the current
record and at the specified index.IDatapoolIterator.dpBoolean(String)
public boolean dpBoolean(java.lang.String variableName)
IDatapoolIterator
boolean
value in the cell in the current
row and the specified variable name is returned.
If the value in the cell is not a boolean
value then an attempt is made to convert the value to a boolean
. If the value can not be converted an appropriate exception will be thrown.
dpBoolean
in interface IDatapoolIterator
variableName
- The variable name to locate the cell by.
boolean
value in the cell in the current
row and the specified variable name.IDatapoolIterator.dpBoolean(int)
public char dpChar(int variableIndex)
IDatapoolIterator
int
value in the cell in the current
record and the specified variable index is returned. The variable index is the specified zero
based index for the cell.
If the value in the cell is not a char
value then an attempt is made to convert the value to a char
. If more then one
character is represented in the value only the first character will be returned.
dpChar
in interface IDatapoolIterator
variableIndex
- The zero based index of the cell in the record.
char
value in the cell in the current
record and at the specified index.IDatapoolIterator.dpChar(String)
public char dpChar(java.lang.String variableName)
IDatapoolIterator
char
value in the cell in the current
row and the specified variable name is returned.
If the value in the cell is not a char
value then an attempt is made to convert the value to a char
. If more then one
character is represented in the value only the first character will be returned.
dpChar
in interface IDatapoolIterator
variableName
- The variable name to locate the cell by.
char
value in the cell in the current
row and the specified variable name.IDatapoolIterator.dpChar(int)
public java.lang.Object getProperty(java.lang.String property)
IDatapoolIterator
Object
associated with the specified property name.
getProperty
in interface IDatapoolIterator
Object
assoicated with the specified property name.public void setProperty(java.lang.String property, java.lang.Object value)
IDatapoolIterator
Object
.
setProperty
in interface IDatapoolIterator
public void setDatapool(java.lang.String variableName, java.lang.Object value)
public IDatapoolCell getCell(int variableIndex)
public IDatapoolCell getCell(java.lang.String variableName)
protected IDatapoolEquivalenceClass getEquivalenceClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |