Package com.identity4j.util.validator
Class RegexValidator
- java.lang.Object
-
- com.identity4j.util.validator.AbstractSingleValueValidator
-
- com.identity4j.util.validator.RegexValidator
-
- All Implemented Interfaces:
Validator
- Direct Known Subclasses:
EmailAddressValidator
public class RegexValidator extends AbstractSingleValueValidator
-
-
Field Summary
Fields Modifier and Type Field Description static StringREGEXParameter which when supplied, specifies thePatternvalid for the string.static StringREGEX_FLAGS-
Fields inherited from class com.identity4j.util.validator.AbstractSingleValueValidator
REQUIRED, TRIM
-
-
Constructor Summary
Constructors Constructor Description RegexValidator(MultiMap parameters)Constructor.RegexValidator(MultiMap parameters, String regex, int flags)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ValidationErrorcreateError(ValidationContext context, String value)StringtoString()-
Methods inherited from class com.identity4j.util.validator.AbstractSingleValueValidator
isValueRequired, validate
-
-
-
-
Field Detail
-
REGEX
public static final String REGEX
Parameter which when supplied, specifies thePatternvalid for the string.- See Also:
- Constant Field Values
-
REGEX_FLAGS
public static final String REGEX_FLAGS
- See Also:
- Constant Field Values
-
-
Method Detail
-
createError
protected ValidationError createError(ValidationContext context, String value)
-
toString
public final String toString()
- Overrides:
toStringin classAbstractSingleValueValidator
-
-