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 ;5 6 /**7 * A constraint validator for a particular annotation8 *9 * @author Gavin King10 */11 public interface Validator<A extends Annotation > {12 /**13 * does the object/element pass the constraints14 */15 public boolean isValid(Object value);16 /**17 * Take the annotations values18 * @param parameters19 */20 public void initialize(A parameters);21 }22