Created
December 17, 2014 06:03
-
-
Save tag1216/cac9f6c339d461d498d1 to your computer and use it in GitHub Desktop.
Ascii文字制約
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Ascii文字制約 | |
*/ | |
@Documented | |
@Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) | |
@Retention(RetentionPolicy.RUNTIME) | |
@Constraint(validatedBy = {}) | |
@Pattern(regexp = "[\\x00-\\x7F]*") | |
public @interface Ascii { | |
String message() default "dv3j.core.validation.Ascii.message"; | |
Class<?>[] groups() default {}; | |
Class<? extends Payload>[] payload() default {}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment