Class ExcelBooleanValueConverter
java.lang.Object
com.hybris.backoffice.excel.validators.engine.converters.ExcelBooleanValueConverter
- All Implemented Interfaces:
ExcelValueConverter<Boolean>,org.springframework.core.Ordered
Default excel value converter which converts cell value into boolean
-
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
-
ExcelBooleanValueConverter
public ExcelBooleanValueConverter()
-
-
Method Details
-
canConvert
Description copied from interface:ExcelValueConverterIndicates whether converter is able to converts given excel attribute- Specified by:
canConvertin interfaceExcelValueConverter<Boolean>- 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<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)
-