org.openi.web.validation.admin
Class ApplicationValidator

java.lang.Object
  extended byorg.openi.web.validation.admin.ApplicationValidator
All Implemented Interfaces:
org.springframework.validation.Validator

public class ApplicationValidator
extends java.lang.Object
implements org.springframework.validation.Validator

Version:
$Revision: 1.3 $ $Date: 2005/07/19 11:41:49 $
Validates application form.
Author:
Uddhab Pant

Constructor Summary
ApplicationValidator()
           
 
Method Summary
 boolean supports(java.lang.Class _class)
          Return whether or not this object can validate objects of the given class.
 void validate(java.lang.Object object, org.springframework.validation.Errors errors)
          Validate an object, which must be of a class for which the supports() method returned true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationValidator

public ApplicationValidator()
Method Detail

supports

public boolean supports(java.lang.Class _class)
Return whether or not this object can validate objects of the given class.

Specified by:
supports in interface org.springframework.validation.Validator
Parameters:
_class - Class
Returns:
boolean

validate

public void validate(java.lang.Object object,
                     org.springframework.validation.Errors errors)
Validate an object, which must be of a class for which the supports() method returned true.

Specified by:
validate in interface org.springframework.validation.Validator
Parameters:
object - Object
errors - Errors