public class MessageInterpolatorImpl extends Object implements jakarta.validation.MessageInterpolator
This message interpolator is different from the default one in the following ways:
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_VALIDATION_MESSAGES
The name of the default message bundle.
|
static String |
USER_VALIDATION_MESSAGES
The name of the user-provided message bundle as defined in the specification.
|
| Constructor and Description |
|---|
MessageInterpolatorImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
interpolate(String message,
jakarta.validation.MessageInterpolator.Context context) |
String |
interpolate(String message,
jakarta.validation.MessageInterpolator.Context context,
Locale locale)
Runs the message interpolation according to algorithm specified in JSR 303.
|
public static final String DEFAULT_VALIDATION_MESSAGES
public static final String USER_VALIDATION_MESSAGES
public String interpolate(String message, jakarta.validation.MessageInterpolator.Context context)
interpolate in interface jakarta.validation.MessageInterpolatorpublic String interpolate(String message, jakarta.validation.MessageInterpolator.Context context, Locale locale)
interpolate in interface jakarta.validation.MessageInterpolatormessage - the message to interpolatecontext - the context of the annotation which holds the parameters
for which to interpolate this messagelocale - the Locale to use for the resource bundle.Copyright © 2009–2022 Oracle Corporation. All rights reserved.