com.google.gwt.validation.client
Class PastValidator

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

public class PastValidator
extends java.lang.Object
implements IConstraint<Past>

Validator that implements the @Past annotation

Author:
chris

Constructor Summary
PastValidator()
           
 
Method Summary
 void initialize(java.util.Map<java.lang.String,java.lang.String> propertyMap)
          Initialize the constraint validator, this is a "hack" for GWT initialization
 void initialize(Past parameters)
          Initialize the constraint validator.
 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

PastValidator

public PastValidator()
Method Detail

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<Past>
Parameters:
value - The object to validate
Returns:
false if the value is not valid, true otherwise

initialize

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

Specified by:
initialize in interface IConstraint<Past>
Parameters:
parameters - 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<Past>