1 import java.lang.annotation.Documented; 2 import java.lang.annotation.ElementType; 3 import java.lang.annotation.Retention; 4 import java.lang.annotation.RetentionPolicy; 5 6 import javax.annotation.MatchesPattern; 7 import javax.annotation.meta.TypeQualifierNickname; 8 9 @Documented 10 @TypeQualifierNickname 11 @MatchesPattern("[0-9]{3}-[0-9]{2}-[0-9]{4}") 12 @Retention(RetentionPolicy.RUNTIME) 13 public @interface SocialSecurityNumber { 14 } 15