@@ -0,0 +1,580 @@
+package com.github.aureliano.edocs.annotation.validation;%0A%0Aimport java.lang.annotation.ElementType;%0Aimport java.lang.annotation.Retention;%0Aimport java.lang.annotation.RetentionPolicy;%0Aimport java.lang.annotation.Target;%0A%0Aimport com.github.aureliano.edocs.annotation.validation.apply.PatternValidator;%0A%0A@Retention(RetentionPolicy.RUNTIME)%0A@Target(ElementType.METHOD)%0A@Constraint(validatedBy = PatternValidator.class)%0Apublic @interface Pattern %7B%0A%0A%09public abstract String message() default %22Expected field #%7B0%7D to match #%7B1%7D regular expression.%22;%0A%09%0A%09public abstract String value();%0A%7D

Create pattern annotation.