com.interface21.validation
Class ValidationUtils

java.lang.Object
  |
  +--com.interface21.validation.ValidationUtils

public abstract class ValidationUtils
extends java.lang.Object

This class offers a convenient validate method for invoking a validator. Used by BindUtils' bindAndValidate method.

Since:
06.05.2003
Author:
Juergen Hoeller
See Also:
Validator, Errors, BindUtils.bindAndValidate(javax.servlet.ServletRequest, java.lang.Object, java.lang.String, com.interface21.validation.Validator)

Constructor Summary
ValidationUtils()
           
 
Method Summary
static void invokeValidator(Validator validator, java.lang.Object object, Errors errors)
          Invoke the given validator for the given object and Errors instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationUtils

public ValidationUtils()
Method Detail

invokeValidator

public static void invokeValidator(Validator validator,
                                   java.lang.Object object,
                                   Errors errors)
Invoke the given validator for the given object and Errors instance.
Parameters:
validator - validator to be invoked, or null if no validation
object - object to bind the parameters to
errors - Errors instance that should store the errors


Rod Johnson and Spring contributors 2001-2003.