org.hibernate.validator
Class SizeValidator
java.lang.Object
org.hibernate.validator.SizeValidator
- All Implemented Interfaces:
- Serializable, Validator<Size>
public class SizeValidator
- extends Object
- implements Validator<Size>, Serializable
Check the size range according to the element
- Author:
- Gavin King
- See Also:
- Serialized Form
Method Summary |
void |
initialize(Size 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 |
SizeValidator
public SizeValidator()
initialize
public void initialize(Size parameters)
- Description copied from interface:
Validator
- Take the annotations values
- Specified by:
initialize
in interface Validator<Size>
isValid
public boolean isValid(Object value)
- Description copied from interface:
Validator
- does the object/element pass the constraints
- Specified by:
isValid
in interface Validator<Size>