Rational QualityArchitect/Java API
Version 1.0

com.rational.test.vp
Interface DataTable

All Known Implementing Classes:
DatabaseVPData

public interface DataTable

A class implementing this interface encapsulates a table of string data.

Since:
QualityArchitect 0.1

Method Summary
 java.lang.String[] getColumns()
          This method retrieves the column names in the table.
 java.util.Vector getData()
          This method retrieves data from the table.
 int getNumCols()
          This method retrieves the number of columns in the table.
 int getNumRows()
          This method retrieves the number of rows in the table.
 void setColumns(java.lang.String[] asColumns)
          This method specifies the column names in the table.
 void setData(java.util.Vector vData)
          This method specifies the data in the table.
 

Method Detail

getNumCols

public int getNumCols()
This method retrieves the number of columns in the table.
Returns:
The number of columns in the table.

getNumRows

public int getNumRows()
This method retrieves the number of rows in the table.
Returns:
The number of rows in the table.

getColumns

public java.lang.String[] getColumns()
This method retrieves the column names in the table.
Returns:
An array of the column names in the table.

setColumns

public void setColumns(java.lang.String[] asColumns)
This method specifies the column names in the table.
Parameters:
asColumns - The array of the column names in the table.

getData

public java.util.Vector getData()
This method retrieves data from the table. Each array contains one row of data.
Returns:
A Vector of arrays of data in the table.

setData

public void setData(java.util.Vector vData)
This method specifies the data in the table. Each element in the Vector is an array of strings containing one row of data.
Parameters:
vData - The data in the table.

30-Jun-2003

Rational QualityArchitect/Java Support Home Page
Copyright (c) 2000, Rational Software Corporation