Class ImporterConverterServiceImpl
java.lang.Object
ch.tocco.nice2.entityoperation.impl.importer.ImporterConverterServiceImpl
- All Implemented Interfaces:
ImportConverterService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertCellValue(org.apache.poi.ss.usermodel.Cell cell, String typeName) convertStringValue(String input, String typeName) convertStringValues(String value, String typeName) booleanhasConverterForType(String type)
-
Constructor Details
-
ImporterConverterServiceImpl
-
-
Method Details
-
hasConverterForType
- Specified by:
hasConverterForTypein 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:
convertCellValuein interfaceImportConverterService- Parameters:
cell- aCellfrom 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:
convertStringValuein interfaceImportConverterService- Parameters:
input- aStringvalue 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:
convertStringValuesin interfaceImportConverterService- Parameters:
value- aStringvalue to be convertedtypeName- name of the underlying type- Returns:
- an object iterable of the desired type containing the provided values
- Throws:
ImportConverterException
-