play.data.validation
Class Constraints.EmailValidator

java.lang.Object
  extended by play.data.validation.Constraints.Validator<java.lang.String>
      extended by play.data.validation.Constraints.EmailValidator
All Implemented Interfaces:
javax.validation.ConstraintValidator<Constraints.Email,java.lang.String>
Enclosing class:
Constraints

public static class Constraints.EmailValidator
extends Constraints.Validator<java.lang.String>
implements javax.validation.ConstraintValidator<Constraints.Email,java.lang.String>

Validator for @Email fields.


Field Summary
static java.lang.String message
           
 
Constructor Summary
Constraints.EmailValidator()
           
 
Method Summary
 F.Tuple<java.lang.String,java.lang.Object[]> getErrorMessageKey()
           
 void initialize(Constraints.Email constraintAnnotation)
           
 boolean isValid(java.lang.String object)
          Returns true if this value is valid.
 
Methods inherited from class play.data.validation.Constraints.Validator
isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.validation.ConstraintValidator
isValid
 

Field Detail

message

public static final java.lang.String message
See Also:
Constant Field Values
Constructor Detail

Constraints.EmailValidator

public Constraints.EmailValidator()
Method Detail

initialize

public void initialize(Constraints.Email constraintAnnotation)
Specified by:
initialize in interface javax.validation.ConstraintValidator<Constraints.Email,java.lang.String>

isValid

public boolean isValid(java.lang.String object)
Description copied from class: Constraints.Validator
Returns true if this value is valid.

Specified by:
isValid in class Constraints.Validator<java.lang.String>

getErrorMessageKey

public F.Tuple<java.lang.String,java.lang.Object[]> getErrorMessageKey()
Specified by:
getErrorMessageKey in class Constraints.Validator<java.lang.String>