Class MaxLengthValidator
java.lang.Object
com.broadleafcommerce.dataimport.service.validation.MaxLengthValidator
- All Implemented Interfaces:
ImportFieldValidator
Validates that a row length matches the provided length value.
- Author:
- Vitalii Voronkov (vvoronkov)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvalidate
(@NonNull String value, ImportFieldConfig ifg) Returns false if this field does not pass validation.
-
Constructor Details
-
MaxLengthValidator
public MaxLengthValidator(int maxLength)
-
-
Method Details
-
validate
Description copied from interface:ImportFieldValidator
Returns false if this field does not pass validation.- Specified by:
validate
in interfaceImportFieldValidator
- Returns:
- result of validation
ValidationResult
-