Class ExcelDefaultValuesClassificationFieldValidator
- java.lang.Object
-
- com.hybris.backoffice.excel.validators.classification.ExcelDefaultValuesClassificationFieldValidator
-
- All Implemented Interfaces:
ExcelAttributeValidator<ExcelClassificationAttribute>
public class ExcelDefaultValuesClassificationFieldValidator extends java.lang.Object implements ExcelAttributeValidator<ExcelClassificationAttribute>
Allows to handleExcelParserException. It occurs when given default values are in incorrect format.
-
-
Constructor Summary
Constructors Constructor Description ExcelDefaultValuesClassificationFieldValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanHandle(ExcelClassificationAttribute excelAttribute, ImportParameters importParameters)Indicates whether validator is able to validate given cell value.ExcelValidationResultvalidate(ExcelClassificationAttribute excelAttribute, ImportParameters importParameters, java.util.Map<java.lang.String,java.lang.Object> context)Validates given cell and returns validation result.
-
-
-
Method Detail
-
canHandle
public boolean canHandle(@Nonnull ExcelClassificationAttribute excelAttribute, @Nonnull ImportParameters importParameters)Description copied from interface:ExcelAttributeValidatorIndicates whether validator is able to validate given cell value.- Specified by:
canHandlein interfaceExcelAttributeValidator<ExcelClassificationAttribute>- Returns:
- boolean whether validator can validate the cell
-
validate
public ExcelValidationResult validate(@Nonnull ExcelClassificationAttribute excelAttribute, @Nonnull ImportParameters importParameters, @Nonnull java.util.Map<java.lang.String,java.lang.Object> context)
Description copied from interface:ExcelAttributeValidatorValidates given cell and returns validation result. If cell doesn't have validation issues thenExcelValidationResult.SUCCESSshould be returned.- Specified by:
validatein interfaceExcelAttributeValidator<ExcelClassificationAttribute>context- map which can be used as a cache. The map is shared between all request for given excel sheet.- Returns:
-
-