Class ExcelNullValueConverter
java.lang.Object
com.hybris.backoffice.excel.validators.engine.converters.ExcelNullValueConverter
- All Implemented Interfaces:
ExcelValueConverter<Object>,org.springframework.core.Ordered
Default excel value converter which converts empty cell value into null
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanConvert(ExcelAttribute excelAttribute, ImportParameters importParameters) Indicates whether converter is able to converts given excel attributeconvert(ExcelAttribute excelAttribute, ImportParameters importParameters) Converts string value into correct object representationintgetOrder()voidsetOrder(int order)
-
Constructor Details
-
ExcelNullValueConverter
public ExcelNullValueConverter()
-
-
Method Details
-
canConvert
Description copied from interface:ExcelValueConverterIndicates whether converter is able to converts given excel attribute- Specified by:
canConvertin interfaceExcelValueConverter<Object>- Parameters:
excelAttribute-ExcelAttributerepresentation of currently processed attributeimportParameters-ImportParameterslist of parsed import parameters- Returns:
- boolean
-
convert
Description copied from interface:ExcelValueConverterConverts string value into correct object representation- Specified by:
convertin interfaceExcelValueConverter<Object>- Parameters:
excelAttribute-ExcelAttributerepresentation of currently processed attributeimportParameters-ImportParameterslist of parsed import parameters- Returns:
- correct object representation
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order)
-