package io.cucumber.stepexpression;

import io.cucumber.cucumberexpressions.ParameterType;
import io.cucumber.cucumberexpressions.ParameterTypeRegistry;
import io.cucumber.datatable.DataTableType;
import io.cucumber.datatable.DataTableTypeRegistry;
import io.cucumber.datatable.DefaultDataTableEntryTransformer;
import io.cucumber.datatable.TableCellByTypeTransformer;

import java.util.Locale;

public final class TypeRegistry implements cucumber.api.TypeRegistry {

    private final ParameterTypeRegistry parameterTypeRegistry;

    private final DataTableTypeRegistry dataTableTypeRegistry;


    public TypeRegistry(Locale locale) {
        parameterTypeRegistry = new ParameterTypeRegistry(locale);
        dataTableTypeRegistry = new DataTableTypeRegistry(locale);
    }

    public ParameterTypeRegistry parameterTypeRegistry() {
        return parameterTypeRegistry;
    }

    public DataTableTypeRegistry dataTableTypeRegistry() {
        return dataTableTypeRegistry;
    }

    public void defineParameterType(ParameterType<?> parameterType) {
        parameterTypeRegistry.defineParameterType(parameterType);
    }

    public void defineDataTableType(DataTableType tableType) {
        dataTableTypeRegistry.defineDataTableType(tableType);
    }

    @Override
    public void setDefaultDataTableEntryTransformer(DefaultDataTableEntryTransformer defaultDataTableEntryTransformer) {
        dataTableTypeRegistry.setDefaultDataTableEntryTransformer(defaultDataTableEntryTransformer);
    }

    @Override
    public void setDefaultDataTableCellTransformer(TableCellByTypeTransformer defaultDataTableCellTransformer) {
        dataTableTypeRegistry.setDefaultDataTableCellTransformer(defaultDataTableCellTransformer);
    }
}

@@ -271,37 +271,31 @@
 tatable.
-DefaultDataTableEntry
+TableCellByType
 Transfor
@@ -325,36 +325,37 @@
 .datatable.Table
-Cell
+Entry
 ByTypeTransforme
@@ -1316,27 +1316,16 @@
 sformer(
-DefaultData
 TableEnt
@@ -1318,32 +1318,38 @@
 ormer(TableEntry
+ByType
 Transformer defa
@@ -1357,32 +1357,38 @@
 ltDataTableEntry
+ByType
 Transformer) %7B%0A 
@@ -1465,32 +1465,38 @@
 ltDataTableEntry
+ByType
 Transformer);%0A  
@@ -1600,36 +1600,38 @@
 defaultDataTable
-Cell
+ByType
 Transformer) %7B%0A 
@@ -1702,36 +1702,38 @@
 defaultDataTable
-Cell
+ByType
 Transformer);%0A  

Fix build