Class DataTable
- java.lang.Object
 - 
- jadex.extension.envsupport.evaluation.DataTable
 
 
- 
public class DataTable extends java.lang.ObjectBasic data structure for all collected data. 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected java.lang.String[]columnnamesThe table column names.protected java.util.MapcolumnsThe map of column indices.protected java.lang.StringnameThe table name.protected java.util.ListrowsThe data rows. 
- 
Constructor Summary
Constructors Constructor Description DataTable(java.lang.String name, java.lang.String[] columnnames)Create a new data table. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRow(java.lang.Object[] row)Add a data row.intgetColumnIndex(java.lang.String columnname)Get the column index for a column name.java.lang.String[]getColumnNames()Get the columnnames.java.lang.ObjectgetData(int row, int column)Get the data element from a specific row and column.java.lang.StringgetName()Get the name.java.util.ListgetRows()Get the data rows. 
 - 
 
- 
- 
Method Detail
- 
addRow
public void addRow(java.lang.Object[] row)
Add a data row.- Parameters:
 row- The data row.
 
- 
getRows
public java.util.List getRows()
Get the data rows.- Returns:
 - The data rows.
 
 
- 
getColumnNames
public java.lang.String[] getColumnNames()
Get the columnnames.- Returns:
 - The columnnames.
 
 
- 
getColumnIndex
public int getColumnIndex(java.lang.String columnname)
Get the column index for a column name.- Parameters:
 columnname- The column name.- Returns:
 - The column index.
 
 
- 
getData
public java.lang.Object getData(int row, int column)Get the data element from a specific row and column. 
- 
getName
public java.lang.String getName()
Get the name.- Returns:
 - The name.
 
 
 - 
 
 -