KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Min.java,v 1.1 2005/05/27 08:58:54 epbernard Exp $
2
package org.hibernate.validator;
3
4 import static java.lang.annotation.ElementType.METHOD JavaDoc;
5 import static java.lang.annotation.RetentionPolicy.RUNTIME JavaDoc;
6
7 import java.lang.annotation.Retention JavaDoc;
8 import java.lang.annotation.Target JavaDoc;
9
10 /**
11  * min restriction on a numeric annotated elemnt (or the string representation of a numeric)
12  * @author Gavin King
13  */

14 @ValidatorClass(MinValidator.class)
15 @Target JavaDoc(METHOD) @Retention JavaDoc(RUNTIME)
16 public @interface Min {
17     int value();
18     String JavaDoc message() default "must greater than or equal to {value}";
19 }
20
Popular Tags