public class ValidatorHeuristics extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
EMAIL_REGEX_PATTERN
The original pattern "^([A-Za-z_-\+\.]){2,}@[A-Za-z]+(\.([A-Za-z]{2,})+)+$"
was not correctly handled by RegexHandler.createGeneForJVM().
|
| Constructor and Description |
|---|
ValidatorHeuristics() |
| Modifier and Type | Method and Description |
|---|---|
static Truthness |
computeTruthness(Object validator,
Object bean) |
public static final String EMAIL_REGEX_PATTERN
public static Truthness computeTruthness(Object validator, Object bean)
validator - A Object reference to a javax.validation.Validator instance.
Note: it is passed as Object, as we cannot have any compilation dependency on
validation library (and so need to use reflection)bean - An object instance for a bean to validateCopyright © 2016–2024. All rights reserved.