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.
@API(status=STABLE) @FunctionalInterface public interface TableEntryByTypeTransformer
Default transformer for entries which don't have registeredDataTableTypeinTypeRegistry. Similar toTableEntryTransformerbut additionally it receivesClass<T>of expected object andTableCellByTypeTransformerfor transforming individual cells fromStringto arbitrary type.- See Also:
TableEntryTransformer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objecttransform(Map<String,String> entryValue, Type toValueType, TableCellByTypeTransformer cellTransformer)This method should transform row represented by key-value map to object of typetype
-
-
-
Method Detail
-
transform
Object transform(Map<String,String> entryValue, Type toValueType, TableCellByTypeTransformer cellTransformer) throws Throwable
This 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
-
-