Annotation Type MatchesPattern


  • @Documented
    @TypeQualifier(applicableTo=java.lang.String.class)
    @Retention(RUNTIME)
    public @interface MatchesPattern
    This annotation is used to denote String values that should always match given pattern.

    When this annotation is applied to a method it applies to the method return value.

    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String value  
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      int flags  
    • Element Detail

      • value

        @RegEx
        java.lang.String value
      • flags

        int flags
        Default:
        0