Annotation Type ValidationMethod

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      Class<?>[] groups
      The groups the constraint belongs to.
      String message
      The validation message for this constraint.
      Class<? extends jakarta.validation.Payload>[] payload
      The payloads of this constraint.
    • Element Detail

      • message

        String message
        The validation message for this constraint.
        Returns:
        the message
        Default:
        "is not valid"
      • groups

        Class<?>[] groups
        The groups the constraint belongs to.
        Returns:
        an array of classes representing the groups
        Default:
        {}
      • payload

        Class<? extends jakarta.validation.Payload>[] payload
        The payloads of this constraint.
        Returns:
        the array of payload classes
        Default:
        {}