1 //$Id: AssertTrue.java,v 1.1 2005/05/27 08:58:53 epbernard Exp $2 package org.hibernate.validator;3 4 import static java.lang.annotation.ElementType.METHOD ;5 import static java.lang.annotation.RetentionPolicy.RUNTIME ;6 7 import java.lang.annotation.Retention ;8 import java.lang.annotation.Target ;9 10 /**11 * The annotated element has to be true12 * @author Gavin King13 */14 @ValidatorClass(AssertTrueValidator.class)15 @Target (METHOD) @Retention (RUNTIME)16 public @interface AssertTrue {17 String message() default "assertion failed";18 }19