com.fdsapi
Class TabularDataBase

java.lang.Object
  |
  +--com.fdsapi.TabularDataBase
All Implemented Interfaces:
java.io.Serializable, TabularData
Direct Known Subclasses:
TabularData1DimArray, TabularData2DimArray, TabularDataDataSet, TabularDataEmpty, TabularDataResultSet, TabularDataRSMD

public abstract class TabularDataBase
extends java.lang.Object
implements TabularData

Base class for TabularData that provides standard default behaviour for the TabularData interface.

View Code

See Also:
Serialized Form

Field Summary
protected  DataIterator colIterator
           
protected  DataIterator rowIterator
           
 
Fields inherited from interface com.fdsapi.TabularData
NOTUSED
 
Constructor Summary
protected TabularDataBase()
           
protected TabularDataBase(int numRows, int numCols)
           
 
Method Summary
protected  void createColIterator(int numCols)
           
abstract  TabularData createInstance(java.lang.Object data)
          Factory method that returns a TabularData instance.
protected  void createRowIterator(int numRows)
           
abstract  java.lang.Object getCellData()
          Return current cell data (the current row and current column)
abstract  java.lang.Object getCellData(int col)
          Return cell data in the current rows specified column
 DataIterator getColIterator()
          Return the Iterator that can iterate through the TabularData's columns
 TabularData getHeader()
          Get the Header (which is also TabularData)
 DataIterator getRowIterator()
          Return the Iterator that can iterate through the TabularData's rows
 void setHeader(TabularData header)
          Set the Header (which is also TabularData)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rowIterator

protected DataIterator rowIterator

colIterator

protected DataIterator colIterator
Constructor Detail

TabularDataBase

protected TabularDataBase()

TabularDataBase

protected TabularDataBase(int numRows,
                          int numCols)
Method Detail

getCellData

public abstract java.lang.Object getCellData(int col)
Description copied from interface: TabularData
Return cell data in the current rows specified column

Specified by:
getCellData in interface TabularData

getCellData

public abstract java.lang.Object getCellData()
Description copied from interface: TabularData
Return current cell data (the current row and current column)

Specified by:
getCellData in interface TabularData

createInstance

public abstract TabularData createInstance(java.lang.Object data)
Description copied from interface: TabularData
Factory method that returns a TabularData instance. The passed object is the underlying data that will be iterated (i.e. ResultSet, Object[][] etc)

Specified by:
createInstance in interface TabularData

getRowIterator

public DataIterator getRowIterator()
Description copied from interface: TabularData
Return the Iterator that can iterate through the TabularData's rows

Specified by:
getRowIterator in interface TabularData

getColIterator

public DataIterator getColIterator()
Description copied from interface: TabularData
Return the Iterator that can iterate through the TabularData's columns

Specified by:
getColIterator in interface TabularData

createRowIterator

protected void createRowIterator(int numRows)

createColIterator

protected void createColIterator(int numCols)

getHeader

public TabularData getHeader()
Description copied from interface: TabularData
Get the Header (which is also TabularData)

Specified by:
getHeader in interface TabularData

setHeader

public void setHeader(TabularData header)
Description copied from interface: TabularData
Set the Header (which is also TabularData)

Specified by:
setHeader in interface TabularData