Class RfcCompliantEmailAddressValidator
- java.lang.Object
-
- org.apache.wicket.extensions.validation.validator.RfcCompliantEmailAddressValidator
-
- All Implemented Interfaces:
Serializable
,IClusterable
,IValidator<String>
public class RfcCompliantEmailAddressValidator extends Object implements 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:
- Perl Regex implementation of RFC 822, RFC 822, Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RfcCompliantEmailAddressValidator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IValidationError
decorate(IValidationError error, IValidatable<String> validatable)
Allows subclasses to decorate reported errorsstatic RfcCompliantEmailAddressValidator
getInstance()
void
validate(IValidatable<String> validatable)
Validates theIValidatable
instance.
-
-
-
Constructor Detail
-
RfcCompliantEmailAddressValidator
protected RfcCompliantEmailAddressValidator()
-
-
Method Detail
-
getInstance
public static RfcCompliantEmailAddressValidator getInstance()
- Returns:
- Instance of RFC compliant emailaddress validator
-
validate
public void validate(IValidatable<String> validatable)
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
protected IValidationError decorate(IValidationError error, IValidatable<String> validatable)
Allows subclasses to decorate reported errors- Parameters:
error
-validatable
-- Returns:
- decorated error
-
-