Class ExcelValueConverterRegistry

java.lang.Object
com.hybris.backoffice.excel.validators.engine.converters.ExcelValueConverterRegistry

public class ExcelValueConverterRegistry extends Object
Default registry for excel converters used during validation process.
  • Constructor Details

    • ExcelValueConverterRegistry

      public ExcelValueConverterRegistry()
  • Method Details

    • getConverter

      public <CONVERTER extends ExcelValueConverter> Optional<ExcelValueConverter> getConverter(ExcelAttribute excelAttribute, ImportParameters importParameters, Class<CONVERTER>... exclude)
      Finds converter which can handle given attribute descriptor.
      Parameters:
      excelAttribute - which represents selected attribute.
      exclude - list of converters class which shouldn't be taken into account while finding appropriate converter.
      Returns:
      Optional of ExcelValueConverter. If none converter can handle given attribute then Optional.empty() will be returned.
    • getConverters

      public List<ExcelValueConverter> getConverters()
      Returns list of registered converters.
      Returns:
      list of registered converters.
    • setConverters

      public void setConverters(List<ExcelValueConverter> converters)
      Sets list of converters for the registry.
      Parameters:
      converters - for the registry.