org.openi.web.validation.admin
Class ProjectValidator

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

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

Version:
$Revision: 1.3 $ $Date: 2005/07/19 11:42:33 $
Validates project form.
Author:
Uddhab Pant

Constructor Summary
ProjectValidator()
           
 
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

ProjectValidator

public ProjectValidator()
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