com.google.gwt.validation.client
Class MinValidator

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

public class MinValidator
extends java.lang.Object
implements IConstraint<Min>

Implements the @Min annotation.

Author:
chris

Constructor Summary
MinValidator()
           
 
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(Min constraintAnnotation)
          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

MinValidator

public MinValidator()
Method Detail

initialize

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

Specified by:
initialize in interface IConstraint<Min>
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<Min>

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