Class DefaultMessageInterpolatorContext

java.lang.Object
io.micronaut.validation.validator.messages.DefaultMessageInterpolatorContext
All Implemented Interfaces:
jakarta.validation.MessageInterpolator.Context

@Internal public final class DefaultMessageInterpolatorContext extends Object implements jakarta.validation.MessageInterpolator.Context
  • Constructor Details

    • DefaultMessageInterpolatorContext

      public DefaultMessageInterpolatorContext(DefaultConstraintValidatorContext<?> validatorContext, jakarta.validation.metadata.ConstraintDescriptor<Annotation> constraintDescriptor, @Nullable @Nullable Object validatedValue)
  • Method Details

    • getValidatorContext

      public DefaultConstraintValidatorContext<?> getValidatorContext()
    • getConstraintDescriptor

      public jakarta.validation.metadata.ConstraintDescriptor<?> getConstraintDescriptor()
      Specified by:
      getConstraintDescriptor in interface jakarta.validation.MessageInterpolator.Context
    • getValidatedValue

      public Object getValidatedValue()
      Specified by:
      getValidatedValue in interface jakarta.validation.MessageInterpolator.Context
    • unwrap

      public <T> T unwrap(Class<T> type)
      Specified by:
      unwrap in interface jakarta.validation.MessageInterpolator.Context