-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed commit of the following: commit 06ced5a Author: M.P. Korstanje <rien.korstanje@gmail.com> Date: Fri Jul 27 13:50:14 2018 +0200 Upgrade datatable to 1.1.3 commit 8dfbd90 Author: lukasz.suski <szakal783@wp.pl> Date: Fri Jul 6 17:10:29 2018 +0200 Add ability to register default transformers for table cell and entry
- Loading branch information
1 parent
f840358
commit 1b9020c
Showing
4 changed files
with
30 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,29 @@ | ||
package cucumber.api; | ||
|
||
import io.cucumber.cucumberexpressions.ParameterType; | ||
import io.cucumber.cucumberexpressions.ParameterTypeRegistry; | ||
import io.cucumber.datatable.DataTableType; | ||
import io.cucumber.datatable.DataTableTypeRegistry; | ||
|
||
import java.lang.reflect.Type; | ||
import java.util.Locale; | ||
import io.cucumber.datatable.TableCellByTypeTransformer; | ||
import io.cucumber.datatable.TableEntryByTypeTransformer; | ||
|
||
public interface TypeRegistry { | ||
|
||
void defineParameterType(ParameterType<?> parameterType); | ||
|
||
void defineDataTableType(DataTableType tableType); | ||
|
||
/** | ||
* Set default transformer for entries which are not defined by | ||
* {@code defineDataTableType(new DataTableType(Class<T>,TableEntryTransformer<T>))} | ||
* | ||
* @param tableEntryByTypeTransformer default transformer | ||
*/ | ||
void setDefaultDataTableEntryTransformer(TableEntryByTypeTransformer tableEntryByTypeTransformer); | ||
|
||
/** | ||
* Set default transformer for cells which are not defined by | ||
* {@code defineDataTableType(new DataTableType(Class<T>,TableEntryTransformer<T>))} | ||
* | ||
* @param tableCellByTypeTransformer default transformer | ||
*/ | ||
void setDefaultDataTableCellTransformer(TableCellByTypeTransformer tableCellByTypeTransformer); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters