org.apache.wicket.extensions.validation.validator
Class RfcCompliantEmailAddressValidator
java.lang.Object
org.apache.wicket.extensions.validation.validator.RfcCompliantEmailAddressValidator
- All Implemented Interfaces:
- Serializable, org.apache.wicket.util.io.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)
- Specified by:
validate in interface IValidator<String>
decorate
protected ValidationError decorate(ValidationError error,
IValidatable<String> validatable)
- Allows subclasses to decorate reported errors
- Parameters:
error - validatable -
- Returns:
- decorated error
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.