org.mod4j.runtime.validation
Class MaxValueValidator

java.lang.Object
  extended by org.mod4j.runtime.validation.MaxValueValidator
All Implemented Interfaces:
org.springframework.validation.Validator

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

Author:
Eric Jan Malotaux

Constructor Summary
MaxValueValidator(java.lang.Class clazz, java.lang.String field, long max)
           
 
Method Summary
 boolean supports(java.lang.Class clazz)
           
 void validate(java.lang.Object target, org.springframework.validation.Errors errors)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaxValueValidator

public MaxValueValidator(java.lang.Class clazz,
                         java.lang.String field,
                         long max)
Parameters:
field -
max -
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 target,
                     org.springframework.validation.Errors errors)
Specified by:
validate in interface org.springframework.validation.Validator


Copyright © 2009. All Rights Reserved.