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