|
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.Objectcom.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 IDatapoolIteratordatapool - 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)
IDatapoolIteratordpInitialize with equivalence class specification
except that default
equivalence class is used.
dpInitialize in interface IDatapoolIteratordatapool - The datapool to iterate over.public IDatapool getDatapool()
IDatapoolIteratornull is returned.
getDatapool in interface IDatapoolIteratorpublic abstract IDatapoolRecord dpCurrent()
IDatapoolIteratornext method. A value of null is
returned when the iterator is out of values.
dpCurrent in interface IDatapoolIteratornull.IDatapoolIterator.dpNext(),
IDatapoolIterator.dpDone(),
IDatapoolIterator.dpReset()public abstract boolean dpDone()
IDatapoolIteratortrue if the current iterator value is null.
dpDone in interface IDatapoolIteratorIDatapoolIterator.dpCurrent(),
IDatapoolIterator.dpNext(),
IDatapoolIterator.dpReset()public abstract void dpNext()
IDatapoolIterator
dpNext in interface IDatapoolIteratorIDatapoolIterator.dpCurrent(),
IDatapoolIterator.dpDone(),
IDatapoolIterator.dpReset()public abstract void dpReset()
IDatapoolIterator
dpReset in interface IDatapoolIteratorIDatapoolIterator.dpCurrent(),
IDatapoolIterator.dpDone(),
IDatapoolIterator.dpNext()public java.lang.Object dpValue(int variableIndex)
IDatapoolIteratorcurrent record and the specified variable index is returned. The variable index is the specified zero
based index for the cell.
dpValue in interface IDatapoolIteratorvariableIndex - 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)
IDatapoolIteratorcurrent record and the specified variable name is returned.
dpValue in interface IDatapoolIteratorvariableName - 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)
IDatapoolIteratorString 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 IDatapoolIteratorvariableIndex - 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)
IDatapoolIteratorString 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 IDatapoolIteratorvariableName - 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)
IDatapoolIteratorlong 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 IDatapoolIteratorvariableIndex - 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)
IDatapoolIteratorlong 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 IDatapoolIteratorvariableName - 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)
IDatapoolIteratorint 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 IDatapoolIteratorvariableIndex - 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)
IDatapoolIteratorint 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 IDatapoolIteratorvariableName - 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)
IDatapoolIteratorshort 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 IDatapoolIteratorvariableIndex - 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)
IDatapoolIteratorshort 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 IDatapoolIteratorvariableName - 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)
IDatapoolIteratorbyte 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 IDatapoolIteratorvariableIndex - 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)
IDatapoolIteratorbyte 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 IDatapoolIteratorvariableName - 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)
IDatapoolIteratordouble 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 IDatapoolIteratorvariableIndex - 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)
IDatapoolIteratordouble 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 IDatapoolIteratorvariableName - 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)
IDatapoolIteratorfloat 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 IDatapoolIteratorvariableIndex - 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)
IDatapoolIteratorfloat 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 IDatapoolIteratorvariableName - 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)
IDatapoolIteratorint 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 IDatapoolIteratorvariableIndex - 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)
IDatapoolIteratorboolean 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 IDatapoolIteratorvariableName - 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)
IDatapoolIteratorint 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 IDatapoolIteratorvariableIndex - 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)
IDatapoolIteratorchar 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 IDatapoolIteratorvariableName - 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)
IDatapoolIteratorObject associated with the specified property name.
getProperty in interface IDatapoolIteratorObject assoicated with the specified property name.public void setProperty(java.lang.String property, java.lang.Object value)
IDatapoolIteratorObject.
setProperty in interface IDatapoolIteratorpublic 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 | |||||||||