com.google.gwt.validation.client.interfaces
Interface IValidator<T>

Type Parameters:
T -
All Known Implementing Classes:
AbstractValidator, ServerValidator

public interface IValidator<T>

Basic interface for a validator to validate a given class

Author:
chris

Method Summary
 java.util.Set<InvalidConstraint<T>> validate(T object, java.lang.String... groups)
          validate all constraints on object
 java.util.Set<InvalidConstraint<T>> validateProperty(T object, java.lang.String propertyName, java.lang.String... groups)
          validate all constraints on propertyName property of object
 

Method Detail

validate

java.util.Set<InvalidConstraint<T>> validate(T object,
                                             java.lang.String... groups)
validate all constraints on object

Parameters:
object - object to validate
groups - group name(s) targeted for validation (default to default)
Returns:
invalid constrains or an empty Set if none
Throws:
java.lang.IllegalArgumentException - e if object is null

validateProperty

java.util.Set<InvalidConstraint<T>> validateProperty(T object,
                                                     java.lang.String propertyName,
                                                     java.lang.String... groups)
validate all constraints on propertyName property of object

Parameters:
object - object to validate
propertyName - property to validate
groups - group name(s) targeted for validation (default to default)
Returns:
invalid constrains or an empty Set if none
Throws:
java.lang.IllegalArgumentException - e if object is null