org.hibernate.validator
Class MinValidator
java.lang.Object
org.hibernate.validator.MinValidator
- All Implemented Interfaces:
- Serializable, PropertyConstraint, Validator<Min>
public class MinValidator
- extends Object
- implements Validator<Min>, PropertyConstraint, Serializable
Do check a min 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
Method Summary |
void |
apply(org.hibernate.mapping.Property property)
|
void |
initialize(Min 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 |
MinValidator
public MinValidator()
initialize
public void initialize(Min parameters)
- Description copied from interface:
Validator
- Take the annotations values
- Specified by:
initialize
in interface Validator<Min>
isValid
public boolean isValid(Object value)
- Description copied from interface:
Validator
- does the object/element pass the constraints
- Specified by:
isValid
in interface Validator<Min>
apply
public void apply(org.hibernate.mapping.Property property)
- Specified by:
apply
in interface PropertyConstraint