Class AbstractSingleClassificationFieldValidator
- java.lang.Object
-
- com.hybris.backoffice.excel.validators.classification.AbstractSingleClassificationFieldValidator
-
- All Implemented Interfaces:
ExcelAttributeValidator<ExcelClassificationAttribute>
- Direct Known Subclasses:
ExcelBooleanClassificationFieldValidator
,ExcelClassificationGenericReferenceValidator
,ExcelDateClassificationFieldValidator
,ExcelEnumClassificationValidator
,ExcelMediaClassificationValidator
,ExcelNumberClassificationFieldValidator
public abstract class AbstractSingleClassificationFieldValidator extends java.lang.Object implements ExcelAttributeValidator<ExcelClassificationAttribute>
AllExcelAttributeValidator
s which validates a specific type should extend this abstract. It allows to prevent invoking the validator more than 1 time, when given type is multivalue or range.
-
-
Constructor Summary
Constructors Constructor Description AbstractSingleClassificationFieldValidator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
canHandle(ExcelClassificationAttribute excelAttribute, ImportParameters importParameters)
Indicates whether validator is able to validate given cell value.abstract boolean
canHandleSingle(ExcelClassificationAttribute excelAttribute, ImportParameters importParameters)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.hybris.backoffice.excel.validators.ExcelAttributeValidator
validate
-
-
-
-
Method Detail
-
canHandle
public boolean canHandle(@Nonnull ExcelClassificationAttribute excelAttribute, @Nonnull ImportParameters importParameters)
Description copied from interface:ExcelAttributeValidator
Indicates whether validator is able to validate given cell value.- Specified by:
canHandle
in interfaceExcelAttributeValidator<ExcelClassificationAttribute>
- Returns:
- boolean whether validator can validate the cell
-
canHandleSingle
public abstract boolean canHandleSingle(@Nonnull ExcelClassificationAttribute excelAttribute, @Nonnull ImportParameters importParameters)
-
-