Class EnumeratedValueValidator
java.lang.Object
com.broadleafcommerce.dataimport.service.validation.EnumeratedValueValidator
- All Implemented Interfaces:
ImportFieldValidator
- Direct Known Subclasses:
BooleanValidator
Provides validation against expected enumerated String values.
- Author:
- Kelly Tisdell (ktisdell)
-
Constructor Summary
ConstructorDescriptionEnumeratedValueValidator
(boolean ignoreCase, String... values) EnumeratedValueValidator
(String... values) -
Method Summary
Modifier and TypeMethodDescriptionvalidate
(String value, ImportFieldConfig ifg) Returns false if this field does not pass validation.
-
Constructor Details
-
EnumeratedValueValidator
-
EnumeratedValueValidator
-
-
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
-