KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: AssertTrueValidator.java,v 1.1 2005/05/27 08:58:53 epbernard Exp $
2
package org.hibernate.validator;
3
4
5 /**
6  * Check whether an element is true or not
7  * @author Gavin King
8  */

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