at.spardat.xma.datasource
Class TabularDataRow

java.lang.Object
  extended byat.spardat.xma.datasource.TabularDataRow

public class TabularDataRow
extends java.lang.Object

A TabularDataRow stores the data for a row of a TabularData.


Constructor Summary
TabularDataRow(TabularData aTabularData)
          Creates a TabularDataRow for a TabularData.
 
Method Summary
 void add(Atom value)
          Adds a column and sets the value for this column.
 Atom get(int col)
          Returns the value of this row for the column with a given column-index.
 Atom get(java.lang.String colName)
          Returns the value for a column with a given name.
 int hashCode()
           
 void set(int col, Atom value)
          Sets the value for the column with a given index.
 void set(java.lang.String colName, Atom value)
          Sets the value for a column with a given name.
 int size()
          Returns the number of Atoms in this.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabularDataRow

public TabularDataRow(TabularData aTabularData)
Creates a TabularDataRow for a TabularData.

Parameters:
aTabularData - - The TabularData for which the row is created.
Method Detail

add

public void add(Atom value)
Adds a column and sets the value for this column.

Parameters:
value - - The value for the column.

set

public void set(int col,
                Atom value)
Sets the value for the column with a given index.

Parameters:
col - - The index of the column.
value - - The value to be set.

set

public void set(java.lang.String colName,
                Atom value)
Sets the value for a column with a given name.

Parameters:
colName - - The name of the column.
value - - The value for the column.

get

public Atom get(int col)
Returns the value of this row for the column with a given column-index.

Parameters:
col - - The index of the column.
Returns:
non null Atom.
Throws:
java.lang.IllegalArgumentException - if col greater than or equal to the number of columns in the table.

get

public Atom get(java.lang.String colName)
Returns the value for a column with a given name.

Parameters:
colName - - The name of the column.

hashCode

public int hashCode()
See Also:
Object.hashCode()

size

public int size()
Returns the number of Atoms in this.