| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static RegexValidator | Returns: Returns a new RegexValidator.The error message that is returned if the validation fails. errorMessage)Creates a RegexValidator for alphanumeric inputs. |
| public static RegexValidator | |
| public static RegexValidator | Returns: Returns a new RegexValidator.The pattern to use for the validation. Must be a valid
RegEx. pattern, String The error message that is returned if the validation fails. errorMessage)Creates a RegexValidator with a custom pattern. |
| public static RegexValidator | |
| public ValidationResult |
| pattern | back to summary |
|---|---|
| private Pattern pattern | |
| RegexValidator | back to summary |
|---|---|
| private RegexValidator(String pattern, String errorMessage) throws PatternSyntaxException | |
| forAlphaNumeric | back to summary |
|---|---|
| public static RegexValidator forAlphaNumeric(String errorMessage) Creates a RegexValidator for alphanumeric inputs.
| |
| forEmail | back to summary |
|---|---|
| public static RegexValidator forEmail(String errorMessage) Creates a RegexValidator for email addresses.
| |
| forPattern | back to summary |
|---|---|
| public static RegexValidator forPattern(String pattern, String errorMessage) Creates a RegexValidator with a custom pattern.
| |
| forURL | back to summary |
|---|---|
| public static RegexValidator forURL(String errorMessage) Creates a RegexValidator for URLs.
| |
| validate | back to summary |
|---|---|
| public ValidationResult validate(String input) Implements com.
| |