Package com.thoughtworks.gauge
Class Table
- java.lang.Object
-
- com.thoughtworks.gauge.Table
-
public class Table extends Object
Custom Table structure used as parameter in steps.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddRow(List<String> row)booleanequals(Object obj)StringgetColumnName(int columnIndex)Gets a Column name by index.List<String>getColumnNames()List<String>getColumnValues(int columnIndex)Get all the values of a column in a Table.List<String>getColumnValues(String columnName)Get all the values of a column in Table.List<List<String>>getRows()Deprecated.Use getTableRows() method instead of this.List<TableRow>getTableRows()inthashCode()StringtoString()
-
-
-
Method Detail
-
getColumnNames
public List<String> getColumnNames()
- Returns:
- List of Names of the Columns on the table
-
getColumnName
public String getColumnName(int columnIndex)
Gets a Column name by index.- Parameters:
columnIndex-- Returns:
- a single column name by given column index.
-
getTableRows
public List<TableRow> getTableRows()
- Returns:
- List of Rows in the table. Each Row is represented by a TableRow.
-
getRows
@Deprecated public List<List<String>> getRows()
Deprecated.Use getTableRows() method instead of this.- Returns:
- List of TableRows in the table. Each Row is represented by a List of String values according to the order of column names
-
getColumnValues
public List<String> getColumnValues(String columnName)
Get all the values of a column in Table.- Parameters:
columnName- - The column name of the Table- Returns:
- List of values against a column in Table.
-
getColumnValues
public List<String> getColumnValues(int columnIndex)
Get all the values of a column in a Table.- Parameters:
columnIndex- - The column index of the table- Returns:
- List of row values of a given column index in a Table.
-
-