Package io.cucumber.datatable
Class DataTableType
java.lang.Object
io.cucumber.datatable.DataTableType
A data table type describes how a data table should be represented as an
object.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDataTableType(Type type, TableCellTransformer<T> transformer) Creates a data table type that transforms the cells of the table into a list of list of objects.DataTableType(Type type, TableEntryTransformer<T> transformer) Creates a data table type that transforms the entries of the table into a list of objects.DataTableType(Type type, TableRowTransformer<T> transformer) Creates a data table type that transforms the rows of the table into a list of objects.DataTableType(Type type, TableTransformer<T> transformer) Creates a data table type that transforms the whole table to a single object. -
Method Summary
-
Constructor Details
-
DataTableType
Creates a data table type that transforms the whole table to a single object.- Type Parameters:
T- seetype- Parameters:
type- the type of the objecttransformer- a function that creates an instance oftypefrom the data table
-
DataTableType
Creates a data table type that transforms the rows of the table into a list of objects.- Type Parameters:
T- seetype- Parameters:
type- the type of the list itemstransformer- a function that creates an instance oftypefrom the data table row
-
DataTableType
Creates a data table type that transforms the entries of the table into a list of objects. An entry consists of the elements of the table header paired with the values of each subsequent row.- Type Parameters:
T- seetype- Parameters:
type- the type of the list itemstransformer- a function that creates an instance oftypefrom the data table entry
-
DataTableType
Creates a data table type that transforms the cells of the table into a list of list of objects.- Type Parameters:
T- seetype- Parameters:
type- the type of the list of lists itemstransformer- a function that creates an instance oftypefrom the data table cell
-
-
Method Details