@Documented @Target(value=ANNOTATION_TYPE) public @interface TypeQualifierNickname
Thus, you might define a qualifier SocialSecurityNumber as follows:
@Documented @TypeQualifierNickname @Pattern("[0-9]{3}-[0-9]{2}-[0-9]{4}") @Retention(RetentionPolicy.RUNTIME) public @interface SocialSecurityNumber { }
Copyright © 2015. All rights reserved.