Interface ImportConverterService
- All Known Implementing Classes:
ImporterConverterServiceImpl
public interface ImportConverterService
Stateful service that converts values. Obtain an instance using
ImportConverterServiceProvider.get()
.-
Method Summary
Modifier and TypeMethodDescriptionconvertCellValue
(org.apache.poi.ss.usermodel.Cell input, String typeName) convertStringValue
(String input, String typeName) convertStringValues
(String input, String typeName) boolean
hasConverterForType
(String type)
-
Method Details
-
hasConverterForType
- 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
- aCell
from which the value should be extractedtypeName
- name of the underlying type- Returns:
- an object of the desired type containing the provided value
- Throws:
ImportConverterException
-
convertStringValue
- Parameters:
input
- aString
value to be convertedtypeName
- name of the underlying type- Returns:
- an object of the desired type containing the provided value
- Throws:
ImportConverterException
-
convertStringValues
- Parameters:
input
- aString
value to be convertedtypeName
- name of the underlying type- Returns:
- an object iterable of the desired type containing the provided values
- Throws:
ImportConverterException
-