org.jmonks.dms.command.validator
Class FileFormCommandValidator

java.lang.Object
  extended byorg.jmonks.dms.command.validator.FileFormCommandValidator
All Implemented Interfaces:
org.springframework.validation.Validator

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

Author:
Suresh Pragada

Field Summary
protected static org.apache.log4j.Logger logger
           
 
Constructor Summary
FileFormCommandValidator()
          Creates a new instance of FileFormCommandValidator
 
Method Summary
private  boolean isNameExists(FileFormCommand command)
           
 boolean supports(java.lang.Class clazz)
           
 void validate(java.lang.Object object, org.springframework.validation.Errors errors)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger
Constructor Detail

FileFormCommandValidator

public FileFormCommandValidator()
Creates a new instance of FileFormCommandValidator

Method Detail

supports

public boolean supports(java.lang.Class clazz)
Specified by:
supports in interface org.springframework.validation.Validator

validate

public void validate(java.lang.Object object,
                     org.springframework.validation.Errors errors)
Specified by:
validate in interface org.springframework.validation.Validator

isNameExists

private boolean isNameExists(FileFormCommand command)