org.apache.wicket.extensions.validation.validator
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RfcCompliantEmailAddressValidator
protected RfcCompliantEmailAddressValidator()
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 the
IValidatable
instance. Validation errors should be reported using
the IValidatable.error(IValidationError)
method.
- Specified by:
validate
in interface IValidator<String>
- Parameters:
validatable
- the IValidatable
instance being validated
decorate
protected ValidationError decorate(ValidationError error,
IValidatable<String> validatable)
- Allows subclasses to decorate reported errors
- Parameters:
error
- validatable
-
- Returns:
- decorated error
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.