Interface ExcelValueConverter<TYPE>

All Superinterfaces:
org.springframework.core.Ordered
All Known Implementing Classes:
ExcelBooleanValueConverter, ExcelDateValueConverter, ExcelMultiValueConverter, ExcelNullValueConverter, ExcelNumberValueConverter, ExcelStringValueConverter

public interface ExcelValueConverter<TYPE> extends org.springframework.core.Ordered
Converts string value to correct object representation.
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canConvert(ExcelAttribute excelAttribute, ImportParameters importParameters)
    Indicates whether converter is able to converts given excel attribute
    convert(ExcelAttribute excelAttribute, ImportParameters importParameters)
    Converts string value into correct object representation

    Methods inherited from interface org.springframework.core.Ordered

    getOrder
  • Method Details

    • canConvert

      boolean canConvert(ExcelAttribute excelAttribute, ImportParameters importParameters)
      Indicates whether converter is able to converts given excel attribute
      Parameters:
      importParameters - ImportParameters list of parsed import parameters
      excelAttribute - ExcelAttribute representation of currently processed attribute
      Returns:
      boolean
    • convert

      TYPE convert(ExcelAttribute excelAttribute, ImportParameters importParameters)
      Converts string value into correct object representation
      Parameters:
      importParameters - ImportParameters list of parsed import parameters
      excelAttribute - ExcelAttribute representation of currently processed attribute
      Returns:
      correct object representation