Class ExcelMultiValueConverter
- java.lang.Object
-
- com.hybris.backoffice.excel.validators.engine.converters.ExcelMultiValueConverter
-
- All Implemented Interfaces:
ExcelValueConverter<java.util.Collection>,org.springframework.core.Ordered
public class ExcelMultiValueConverter extends java.lang.Object implements ExcelValueConverter<java.util.Collection>
Default excel value converter which converts cell value into list of single import parameters
-
-
Constructor Summary
Constructors Constructor Description ExcelMultiValueConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanConvert(ExcelAttribute excelAttribute, ImportParameters importParameters)Indicates whether converter is able to converts given excel attributejava.util.Collectionconvert(ExcelAttribute excelAttribute, ImportParameters importParameters)Converts string value into correct object representationintgetOrder()voidsetOrder(int order)
-
-
-
Method Detail
-
canConvert
public boolean canConvert(ExcelAttribute excelAttribute, ImportParameters importParameters)
Description copied from interface:ExcelValueConverterIndicates whether converter is able to converts given excel attribute- Specified by:
canConvertin interfaceExcelValueConverter<java.util.Collection>- Parameters:
excelAttribute-ExcelAttributerepresentation of currently processed attributeimportParameters-ImportParameterslist of parsed import parameters- Returns:
- boolean
-
convert
public java.util.Collection convert(ExcelAttribute excelAttribute, ImportParameters importParameters)
Description copied from interface:ExcelValueConverterConverts string value into correct object representation- Specified by:
convertin interfaceExcelValueConverter<java.util.Collection>- 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)
-
-