org.springmodules.validation.validator
Class EmptyValidator

java.lang.Object
  extended by org.springmodules.validation.validator.EmptyValidator
All Implemented Interfaces:
Validator

public class EmptyValidator
extends Object
implements Validator

A validator that doesn't perform any validation.

Author:
Uri Boness

Constructor Summary
EmptyValidator()
           
 
Method Summary
 boolean supports(Class clazz)
          See Validator.supports(Class).
 void validate(Object obj, Errors errors)
          See Validator.validate(Object, org.springframework.validation.Errors).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyValidator

public EmptyValidator()
Method Detail

supports

public boolean supports(Class clazz)
See Validator.supports(Class).

Specified by:
supports in interface Validator
Returns:
true. This validator supports all classes.

validate

public void validate(Object obj,
                     Errors errors)
See Validator.validate(Object, org.springframework.validation.Errors).

Does nothing.

Specified by:
validate in interface Validator


Copyright © 2009. All Rights Reserved.