Annotation Type JSR303Validation


  • @Retention(RUNTIME)
    @Target(PARAMETER)
    public @interface JSR303Validation
    Validates that the annotated element is conform to its JSR303-Annotations
    Author:
    psommer
    • Optional Element Summary

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

      • KEY

        static final String KEY
      • MESSAGE

        static final String MESSAGE
    • Element Detail

      • key

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

        String message
        Default message if the field isn't found
        Returns:
        The default message
        Default:
        "{0} cannot be validated with JSR303 annotations"