org.hibernate.validator
Class MaxValidator

java.lang.Object
  extended by org.hibernate.validator.MaxValidator
All Implemented Interfaces:
Serializable, PropertyConstraint, Validator<Max>

public class MaxValidator
extends Object
implements Validator<Max>, PropertyConstraint, Serializable

Do check a max restriction on a numeric (whether and actual number or its string representation, and apply expected contraints on hibernate metadata.

Author:
Gavin King
See Also:
Serialized Form

Constructor Summary
MaxValidator()
           
 
Method Summary
 void apply(org.hibernate.mapping.Property property)
           
 void initialize(Max parameters)
          Take the annotations values
 boolean isValid(Object value)
          does the object/element pass the constraints
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaxValidator

public MaxValidator()
Method Detail

initialize

public void initialize(Max parameters)
Description copied from interface: Validator
Take the annotations values

Specified by:
initialize in interface Validator<Max>

isValid

public boolean isValid(Object value)
Description copied from interface: Validator
does the object/element pass the constraints

Specified by:
isValid in interface Validator<Max>

apply

public void apply(org.hibernate.mapping.Property property)
Specified by:
apply in interface PropertyConstraint