KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Validator.java,v 1.1 2005/05/27 08:58:54 epbernard Exp $
2
package org.hibernate.validator;
3
4 import java.lang.annotation.Annotation JavaDoc;
5
6 /**
7  * A constraint validator for a particular annotation
8  *
9  * @author Gavin King
10  */

11 public interface Validator<A extends Annotation JavaDoc> {
12     /**
13      * does the object/element pass the constraints
14      */

15     public boolean isValid(Object JavaDoc value);
16     /**
17      * Take the annotations values
18      * @param parameters
19      */

20     public void initialize(A parameters);
21 }
22
Popular Tags