Class ImporterConverterServiceImpl
java.lang.Object
ch.tocco.nice2.entityoperation.impl.importer.ImporterConverterServiceImpl
- All Implemented Interfaces:
ImportConverterService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvertCellValue
(org.apache.poi.ss.usermodel.Cell cell, String typeName) convertStringValue
(String input, String typeName) convertStringValues
(String value, String typeName) boolean
hasConverterForType
(String type)
-
Constructor Details
-
ImporterConverterServiceImpl
-
-
Method Details
-
hasConverterForType
- Specified by:
hasConverterForType
in interfaceImportConverterService
- Parameters:
type
- a type name- Returns:
- true if a converter exists for this type, not considering its base type
-
convertCellValue
public Object convertCellValue(org.apache.poi.ss.usermodel.Cell cell, String typeName) throws ImportConverterException - Specified by:
convertCellValue
in interfaceImportConverterService
- Parameters:
cell
- 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
- Specified by:
convertStringValue
in interfaceImportConverterService
- 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
public Iterable<Object> convertStringValues(String value, String typeName) throws ImportConverterException - Specified by:
convertStringValues
in interfaceImportConverterService
- Parameters:
value
- aString
value to be convertedtypeName
- name of the underlying type- Returns:
- an object iterable of the desired type containing the provided values
- Throws:
ImportConverterException
-