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 Object
implements ExcelAttributeValidator<ExcelClassificationAttribute>
All
ExcelAttributeValidators 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 -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandle(ExcelClassificationAttribute excelAttribute, ImportParameters importParameters) Indicates whether validator is able to validate given cell value.abstract booleancanHandleSingle(ExcelClassificationAttribute excelAttribute, ImportParameters importParameters) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hybris.backoffice.excel.validators.ExcelAttributeValidator
validate
-
Constructor Details
-
AbstractSingleClassificationFieldValidator
public AbstractSingleClassificationFieldValidator()
-
-
Method Details
-
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
-
canHandleSingle
public abstract boolean canHandleSingle(@Nonnull ExcelClassificationAttribute excelAttribute, @Nonnull ImportParameters importParameters)
-