Annotation Type Matches

    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String regexp
      The regular expression to match
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String fieldKey
      The key for formatting the field
      String key
      The key for the violation message
      String message
      Default message if the key isn't found
    • Element Detail

      • regexp

        String regexp
        The regular expression to match
      • key

        String key
        The key for the violation message
        Returns:
        The key of the violation message
        Default:
        "validation.matches.violation"
      • message

        String message
        Default message if the key isn't found
        Returns:
        The default message
        Default:
        "{0} is doesn\'t match the format {1}"
      • fieldKey

        String fieldKey
        The key for formatting the field
        Returns:
        The key
        Default:
        ""