gov.nih.nci.caarray.services.util.parse
Class InternalTable

java.lang.Object
  extended by gov.nih.nci.caarray.services.util.parse.InternalTable

public class InternalTable
extends java.lang.Object

Author:
gustafsons This is a really quick implementation of a table, I could not find anything simple, nice and reusable for the tab delimited output to R. Hence I created this class with an arraylist of apache dynabeans to carry the values, and an arraylist that specifies the order of the columns. You can add normal classes via the nonLocalDynaBean methods, and it will wrap them via the apache beans, they must conform to javabean standards.

Constructor Summary
InternalTable()
           
 
Method Summary
 void addColumnOrder(java.lang.String theColumnOrder)
          Method addColumnOrder.
 void addRow(LocalDynaBean theRow)
          Method addRow.
 void addRow(java.lang.Object theRow)
          Method addRow.
 java.lang.String[] getTheColumnOrder()
          Method getTheColumnOrder.
 LocalDynaBean[] getTheRows()
          Method getTheRows.
static void main(java.lang.String[] args)
           
 void setColumnOrder(java.lang.String[] theColumnOrder)
          Method setColumnOrder.
 void setTheRows(LocalDynaBean[] theRows)
          Method setTheRows.
 void setTheRows(java.lang.Object[] theRows)
          Method setTheRows.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalTable

public InternalTable()
Method Detail

setTheRows

public void setTheRows(LocalDynaBean[] theRows)
Method setTheRows.

Parameters:
theRows -

setTheRows

public void setTheRows(java.lang.Object[] theRows)
Method setTheRows.

Parameters:
theRows -

addRow

public void addRow(LocalDynaBean theRow)
Method addRow.

Parameters:
theRow -

addRow

public void addRow(java.lang.Object theRow)
Method addRow.

Parameters:
theRow -

getTheRows

public LocalDynaBean[] getTheRows()
Method getTheRows.

Returns:
LocalDynaBean[]

setColumnOrder

public void setColumnOrder(java.lang.String[] theColumnOrder)
Method setColumnOrder.

Parameters:
theColumnOrder -

addColumnOrder

public void addColumnOrder(java.lang.String theColumnOrder)
Method addColumnOrder.

Parameters:
theColumnOrder -

getTheColumnOrder

public java.lang.String[] getTheColumnOrder()
Method getTheColumnOrder.

Returns:
String[]

main

public static void main(java.lang.String[] args)