KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > validator > AssertFalseValidator


1 //$Id: AssertFalseValidator.java,v 1.1 2005/05/27 08:58:53 epbernard Exp $
2
package org.hibernate.validator;
3
4
5 /**
6  * Check if a given object is false or not
7  * @author Gavin King
8  */

9 public class AssertFalseValidator implements Validator<AssertFalse> {
10
11     public boolean isValid(Object JavaDoc value) {
12         return !(Boolean JavaDoc) value;
13     }
14
15     public void initialize(AssertFalse parameters) {}
16
17 }
18
Popular Tags