com.google.gwt.validation.server
Class ServerValidator<T>
java.lang.Object
com.google.gwt.validation.client.AbstractValidator<T>
com.google.gwt.validation.server.ServerValidator<T>
- Type Parameters:
T
- the class to validate
- All Implemented Interfaces:
- IValidator<T>
public class ServerValidator<T>
- extends AbstractValidator<T>
This class serves as a server-side implementation of IValidator that can
be used on the backend without the overhead / fuss of the GWT.create()
mechanism.
This class is designed to parallel as closely as possible the code for the
classes that are created by the generators for client side validation. This
is so that the same issues / bugs / enhancements can be fixed and validated
here before tyring to write code generation code that produces the same effect.
- Author:
- chris
Method Summary |
protected java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> |
getGroupSequenceMapping(java.lang.Class<?> inputClass)
Get a list of group sequence mappings given the input class |
java.util.Set<InvalidConstraint<T>> |
performValidation(T object,
java.lang.String propertyName,
java.util.ArrayList<java.lang.String> groups,
java.util.HashSet<java.lang.String> processedGroups,
java.util.HashSet<java.lang.String> processedObjects)
Actual validation engine class that performs validation internally |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerValidator
public ServerValidator()
getGroupSequenceMapping
protected java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> getGroupSequenceMapping(java.lang.Class<?> inputClass)
- Get a list of group sequence mappings given the input class
- Specified by:
getGroupSequenceMapping
in class AbstractValidator<T>
- Parameters:
inputClass
-
- Returns:
performValidation
public java.util.Set<InvalidConstraint<T>> performValidation(T object,
java.lang.String propertyName,
java.util.ArrayList<java.lang.String> groups,
java.util.HashSet<java.lang.String> processedGroups,
java.util.HashSet<java.lang.String> processedObjects)
- Description copied from class:
AbstractValidator
- Actual validation engine class that performs validation internally
- Specified by:
performValidation
in class AbstractValidator<T>
- Returns: