NotEmpty.java :  » GWT » gwtx » javax » validation » Java Open Source

Java Open Source » GWT » gwtx 
gwtx » javax » validation » NotEmpty.java
package javax.validation;

import java.lang.annotation.Documented;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;

/**
 * <pre>--
 * As soon as the classes in javax.validation are available from official sites, this
 * class will be removed from this compilation unit.
 * --</pre>
 **/
@Documented
@ConstraintValidator(NotEmptyConstraint.class)
@Target({METHOD,FIELD})
@Retention(RUNTIME)
public @interface NotEmpty {
    String[] groups() default {};
    String message() default "{beancheck.notEmpty}";
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.