public class RfcCompliantEmailAddressValidator extends Object implements IValidator<String>
Most users will be satisfied with the EmailAddressValidator
Modifier | Constructor and Description |
---|---|
protected |
RfcCompliantEmailAddressValidator() |
Modifier and Type | Method and Description |
---|---|
protected IValidationError |
decorate(IValidationError error,
IValidatable<String> validatable)
Allows subclasses to decorate reported errors
|
static RfcCompliantEmailAddressValidator |
getInstance() |
void |
validate(IValidatable<String> validatable)
Validates the
IValidatable instance. |
public static RfcCompliantEmailAddressValidator getInstance()
public void validate(IValidatable<String> validatable)
IValidator
IValidatable
instance. Validation errors should be reported using
the IValidatable.error(IValidationError)
method.validate
in interface IValidator<String>
validatable
- the IValidatable
instance being validatedprotected IValidationError decorate(IValidationError error, IValidatable<String> validatable)
error
- validatable
- Copyright © 2006–2022 Apache Software Foundation. All rights reserved.