Interface ImportConverterService

All Known Implementing Classes:
ImporterConverterServiceImpl

public interface ImportConverterService
Stateful service that converts values. Obtain an instance using ImportConverterServiceProvider.get().
  • Method Details

    • hasConverterForType

      boolean hasConverterForType(String type)
      Parameters:
      type - a type name
      Returns:
      true if a converter exists for this type, not considering its base type
    • convertCellValue

      Object convertCellValue(org.apache.poi.ss.usermodel.Cell input, String typeName) throws ImportConverterException
      Parameters:
      input - a Cell from which the value should be extracted
      typeName - name of the underlying type
      Returns:
      an object of the desired type containing the provided value
      Throws:
      ImportConverterException
    • convertStringValue

      Object convertStringValue(String input, String typeName) throws ImportConverterException
      Parameters:
      input - a String value to be converted
      typeName - name of the underlying type
      Returns:
      an object of the desired type containing the provided value
      Throws:
      ImportConverterException
    • convertStringValues

      Iterable<Object> convertStringValues(String input, String typeName) throws ImportConverterException
      Parameters:
      input - a String value to be converted
      typeName - name of the underlying type
      Returns:
      an object iterable of the desired type containing the provided values
      Throws:
      ImportConverterException