com.google.gwt.validation.client
Class EmailValidator

java.lang.Object
  extended by com.google.gwt.validation.client.EmailValidator
All Implemented Interfaces:
IConstraint<Email>

public class EmailValidator
extends java.lang.Object
implements IConstraint<Email>

Implements the @Email annotation.

Author:
chris

Constructor Summary
EmailValidator()
           
 
Method Summary
 void initialize(Email constraintAnnotation)
          Initialize the constraint validator.
 void initialize(java.util.Map<java.lang.String,java.lang.String> propertyMap)
          Initialize the constraint validator, this is a "hack" for GWT initialization
 boolean isValid(java.lang.Object value)
          Evaluates the constraint against a value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailValidator

public EmailValidator()
Method Detail

initialize

public void initialize(Email constraintAnnotation)
Description copied from interface: IConstraint
Initialize the constraint validator.

Specified by:
initialize in interface IConstraint<Email>
Parameters:
constraintAnnotation - The constraint declaration

initialize

public void initialize(java.util.Map<java.lang.String,java.lang.String> propertyMap)
Description copied from interface: IConstraint
Initialize the constraint validator, this is a "hack" for GWT initialization

Specified by:
initialize in interface IConstraint<Email>

isValid

public boolean isValid(java.lang.Object value)
Description copied from interface: IConstraint
Evaluates the constraint against a value. This method must be thread safe.

Specified by:
isValid in interface IConstraint<Email>
Parameters:
value - The object to validate
Returns:
false if the value is not valid, true otherwise