public final class EmailAddressConstraint extends CheckConstraint<String>
CheckConstraint
implementation that checks
whether a string is valid email address.EmailAddress
,
ConstraintFactory.emailAddress()
Modifier and Type | Field and Description |
---|---|
static EmailAddressConstraint |
DEFAULT
EmailAddressConstraint single instance. |
Modifier and Type | Method and Description |
---|---|
protected <T> boolean |
check(String value,
ValidationContext<T> context)
Checks whether the specified string is valid email address.
|
Class<?> |
getType()
Returns
java.lang.String type. |
validate
appendMessageArguments, getMessageTemplate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendMessageArguments, getMessageTemplate
public static final EmailAddressConstraint DEFAULT
EmailAddressConstraint
single instance.public Class<?> getType()
java.lang.String
type.java.lang.String
type.protected <T> boolean check(String value, ValidationContext<T> context)
check
in class CheckConstraint<String>
T
- The type of validated entity.value
- String to be checked.context
- Validation context.true
if the specified string is valid email address;
false
otherwise.Copyright © 2011–2020 FoxLabs. All rights reserved.