Interface SelfValidating

All Known Implementing Classes:
MessageFmt, MessageFmt.DecimalArgumentSegment, MessageFmt.SimpleDateFormatArgumentSegment

public interface SelfValidating
Implemented by classes that can validate themselves. Such classes should be annotated with the @SelfValidates constraint.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    checkValid(jakarta.validation.ConstraintValidatorContext context)
    Validate this instance.
  • Method Details

    • checkValid

      void checkValid(jakarta.validation.ConstraintValidatorContext context) throws SelfValidationException
      Validate this instance.
      Parameters:
      context - validation context
      Throws:
      SelfValidationException - to indicate this instance is invalid