Class ExcelBooleanValueConverter
- java.lang.Object
-
- com.hybris.backoffice.excel.validators.engine.converters.ExcelBooleanValueConverter
-
- All Implemented Interfaces:
ExcelValueConverter<java.lang.Boolean>,org.springframework.core.Ordered
public class ExcelBooleanValueConverter extends java.lang.Object implements ExcelValueConverter<java.lang.Boolean>
Default excel value converter which converts cell value into boolean
-
-
Constructor Summary
Constructors Constructor Description ExcelBooleanValueConverter()
-
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.lang.Booleanconvert(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.lang.Boolean>- Parameters:
excelAttribute-ExcelAttributerepresentation of currently processed attributeimportParameters-ImportParameterslist of parsed import parameters- Returns:
- boolean
-
convert
public java.lang.Boolean convert(ExcelAttribute excelAttribute, ImportParameters importParameters)
Description copied from interface:ExcelValueConverterConverts string value into correct object representation- Specified by:
convertin interfaceExcelValueConverter<java.lang.Boolean>- 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)
-
-