org.hibernate.validator
Class AssertTrueValidator

java.lang.Object
  extended by 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

Constructor Summary
AssertTrueValidator()
           
 
Method Summary
 void initialize(AssertTrue 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

AssertTrueValidator

public AssertTrueValidator()
Method Detail

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>