Class ValidationMessageInterpolator

java.lang.Object
io.jmix.core.impl.validation.ValidationMessageInterpolator
All Implemented Interfaces:
jakarta.validation.MessageInterpolator

@Component("core_ValidationMessageInterpolator") public class ValidationMessageInterpolator extends Object implements jakarta.validation.MessageInterpolator
  • Field Details

    • messages

      @Autowired protected Messages messages
    • messageTools

      @Autowired protected MessageTools messageTools
    • currentAuthentication

      @Autowired protected CurrentAuthentication currentAuthentication
    • expressionFactory

      protected jakarta.el.ExpressionFactory expressionFactory
    • LEFT_BRACE

      protected static final Pattern LEFT_BRACE
    • RIGHT_BRACE

      protected static final Pattern RIGHT_BRACE
    • SLASH

      protected static final Pattern SLASH
    • DOLLAR

      protected static final Pattern DOLLAR
  • Constructor Details

    • ValidationMessageInterpolator

      public ValidationMessageInterpolator()
  • Method Details

    • interpolate

      public String interpolate(String messageTemplate, jakarta.validation.MessageInterpolator.Context context)
      Specified by:
      interpolate in interface jakarta.validation.MessageInterpolator
    • interpolate

      public String interpolate(String messageTemplate, jakarta.validation.MessageInterpolator.Context context, Locale locale)
      Specified by:
      interpolate in interface jakarta.validation.MessageInterpolator
    • interpolateMessage

      protected String interpolateMessage(String messageTemplate, jakarta.validation.MessageInterpolator.Context context, Locale locale)
    • interpolateExpression

      protected String interpolateExpression(org.hibernate.validator.internal.engine.messageinterpolation.parser.TokenIterator tokenIterator, jakarta.validation.MessageInterpolator.Context context, Locale locale)
    • replaceEscapedLiterals

      protected String replaceEscapedLiterals(String resolvedMessage)
    • interpolateMessage

      protected String interpolateMessage(String message, Locale locale)
    • resolveParameter

      protected String resolveParameter(String parameterName, Locale locale)
    • removeCurlyBraces

      protected String removeCurlyBraces(String parameter)
    • getUserLocale

      protected Locale getUserLocale()