org.hibernate.validator
Class AssertTrueValidator
java.lang.Object
org.hibernate.validator.AssertTrueValidator
- All Implemented Interfaces:
- Serializable, Validator<AssertTrue>
public class AssertTrueValidator
- extends Object
- implements Validator<AssertTrue>, Serializable
Check whether an element is true or not
- Author:
- Gavin King
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssertTrueValidator
public AssertTrueValidator()
isValid
public boolean isValid(Object value)
- Description copied from interface:
Validator
- does the object/element pass the constraints
- Specified by:
isValid
in interface Validator<AssertTrue>
initialize
public void initialize(AssertTrue parameters)
- Description copied from interface:
Validator
- Take the annotations values
- Specified by:
initialize
in interface Validator<AssertTrue>