Class RegexFieldValidator
java.lang.Object
com.broadleafcommerce.dataimport.service.validation.RegexFieldValidator
- All Implemented Interfaces:
ImportFieldValidator
- Direct Known Subclasses:
MoneyAmountValidator
Validates that a row value matches the provided regular expression.
- Author:
- Vitalii Voronkov (vvoronkov)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvalidate
(String value, ImportFieldConfig ifg) Returns false if this field does not pass validation.
-
Constructor Details
-
RegexFieldValidator
-
-
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
-