Module org.apache.wicket.extensions
Class RfcCompliantEmailAddressValidator
java.lang.Object
org.apache.wicket.extensions.validation.validator.RfcCompliantEmailAddressValidator
- All Implemented Interfaces:
Serializable
,IClusterable
,IValidator<String>
Validator for validating email addresses according to the RFC 822. This validator uses the
regular expression taken from the Perl implementation of RFC 822.
Most users will be satisfied with the EmailAddressValidator
- Author:
- Frank Bille
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected IValidationError
decorate
(IValidationError error, IValidatable<String> validatable) Allows subclasses to decorate reported errorsvoid
validate
(IValidatable<String> validatable) Validates theIValidatable
instance.
-
Constructor Details
-
RfcCompliantEmailAddressValidator
protected RfcCompliantEmailAddressValidator()
-
-
Method Details
-
getInstance
- Returns:
- Instance of RFC compliant emailaddress validator
-
validate
Description copied from interface:IValidator
Validates theIValidatable
instance. Validation errors should be reported using theIValidatable.error(IValidationError)
method.- Specified by:
validate
in interfaceIValidator<String>
- Parameters:
validatable
- theIValidatable
instance being validated
-
decorate
Allows subclasses to decorate reported errors- Parameters:
error
-validatable
-- Returns:
- decorated error
-