Class ValidationMessageInterpolator

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

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

    • messages

      @Autowired protected Messages messages
    • messageTools

      @Autowired protected MessageTools messageTools
    • currentAuthentication

      @Autowired protected CurrentAuthentication currentAuthentication
    • expressionFactory

      protected javax.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, javax.validation.MessageInterpolator.Context context)
      Specified by:
      interpolate in interface javax.validation.MessageInterpolator
    • interpolate

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

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

      protected String interpolateExpression(org.hibernate.validator.internal.engine.messageinterpolation.parser.TokenIterator tokenIterator, javax.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()