IBM Rational Functional Tester
Version 8.1.1000
IBM Rational Functional Tester API Reference

Project Version 2.3

com.rational.test.ft.vp
Interface ITestDataElementList


public interface ITestDataElementList

Used by the ITestDataList interface to encapsulate the ordered set of generic elements that make up the desired list. This interface is not typically used directly, but instead is a shared implementation of a collection of generic elements without specific higher-level control attributes. When used relative to the ITestDataList interface, appropriate comparison attributes are available to control use of the list.

Since:
RFT1.0

Method Summary
 void add(ITestDataElement element)
          Appends an element to the end of the list.
 void add(ITestDataElement element, int atIndex)
          Inserts the specified element at the specified position in this list.
 ITestDataElement getElement(int index)
          Returns the ITestDataElement at the specified index.
 java.util.Vector getElements()
          Returns an ordered vector of ITestDataElement objects.
 int getLength()
          Returns the number of elements that exist in the associated list.
 void remove(int atIndex)
          Removes the element at the specified index from the list.
 void removeAll()
          Removes all elements in the list.
 

Method Detail

getLength

int getLength()
Returns the number of elements that exist in the associated list.

Since:
RFT1.0

getElement

ITestDataElement getElement(int index)
Returns the ITestDataElement at the specified index. The index is a zero-based index that must consist of less than the number of elements in the list.

Parameters:
index - the zero-based index of the desired element
Since:
RFT1.0

add

void add(ITestDataElement element,          int atIndex)
Inserts the specified element at the specified position in this list. In so doing, it shifts the element currently at that position (if any) and any subsequent elements to the right.

Parameters:
element - the element to add to the list
atIndex - the index of the element after being added to the list
Since:
RFT1.0

add

void add(ITestDataElement element)
Appends an element to the end of the list.

Parameters:
element - the element to add to the list
Since:
RFT1.0

remove

void remove(int atIndex)
Removes the element at the specified index from the list. The index is a zero-based index that must consist of less than the number of elements in the list.

Parameters:
atIndex - the zero-based index of the desired element
Since:
RFT1.0

removeAll

void removeAll()
Removes all elements in the list.

Since:
RFT1.0

getElements

java.util.Vector getElements()
Returns an ordered vector of ITestDataElement objects.

Since:
RFT1.0