Package io.jmix.core.impl.validation
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.validation.MessageInterpolator
jakarta.validation.MessageInterpolator.Context
-
Field Summary
Modifier and TypeFieldDescriptionprotected CurrentAuthentication
protected static final Pattern
protected jakarta.el.ExpressionFactory
protected static final Pattern
protected Messages
protected MessageTools
protected static final Pattern
protected static final Pattern
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Locale
interpolate
(String messageTemplate, jakarta.validation.MessageInterpolator.Context context) interpolate
(String messageTemplate, jakarta.validation.MessageInterpolator.Context context, Locale locale) protected String
interpolateExpression
(org.hibernate.validator.internal.engine.messageinterpolation.parser.TokenIterator tokenIterator, jakarta.validation.MessageInterpolator.Context context, Locale locale) protected String
interpolateMessage
(String messageTemplate, jakarta.validation.MessageInterpolator.Context context, Locale locale) protected String
interpolateMessage
(String message, Locale locale) protected String
removeCurlyBraces
(String parameter) protected String
replaceEscapedLiterals
(String resolvedMessage) protected String
resolveParameter
(String parameterName, Locale locale)
-
Field Details
-
messages
-
messageTools
-
currentAuthentication
-
expressionFactory
protected jakarta.el.ExpressionFactory expressionFactory -
LEFT_BRACE
-
RIGHT_BRACE
-
SLASH
-
DOLLAR
-
-
Constructor Details
-
ValidationMessageInterpolator
public ValidationMessageInterpolator()
-
-
Method Details
-
interpolate
public String interpolate(String messageTemplate, jakarta.validation.MessageInterpolator.Context context) - Specified by:
interpolate
in interfacejakarta.validation.MessageInterpolator
-
interpolate
public String interpolate(String messageTemplate, jakarta.validation.MessageInterpolator.Context context, Locale locale) - Specified by:
interpolate
in interfacejakarta.validation.MessageInterpolator
-
interpolateMessage
-
interpolateExpression
-
replaceEscapedLiterals
-
interpolateMessage
-
resolveParameter
-
removeCurlyBraces
-
getUserLocale
-