Package io.cucumber.datatable
Interface TableEntryByTypeTransformer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Default transformer for entries which don't have registered
DataTableType. Similar to TableEntryTransformer but
additionally it receives Class<T> of expected object and
TableCellByTypeTransformer for transforming individual cells from
String to arbitrary type.- See Also:
-
Method Summary
-
Method Details
-
transform
Object transform(Map<String, String> entryValue, Type toValueType, TableCellByTypeTransformer cellTransformer) throws ThrowableThis method should transform row represented by key-value map to object of typetype- Parameters:
entryValue- table entry, key - column name, value - celltoValueType- type of an expected object to returncellTransformer- cell transformer- Returns:
- new instance of
type - Throws:
Throwable- unable to transform
-