Class ExcelValueConverterRegistry


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

      • ExcelValueConverterRegistry

        public ExcelValueConverterRegistry()
    • Method Detail

      • getConverter

        public <CONVERTER extends ExcelValueConverter> java.util.Optional<ExcelValueConverter> getConverter​(ExcelAttribute excelAttribute,
                                                                                                            ImportParameters importParameters,
                                                                                                            java.lang.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 java.util.List<ExcelValueConverter> getConverters()
        Returns list of registered converters.
        Returns:
        list of registered converters.
      • setConverters

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