public class MessageInterpolatorImpl extends Object implements javax.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,
javax.validation.MessageInterpolator.Context context) |
String |
interpolate(String message,
javax.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, javax.validation.MessageInterpolator.Context context)
interpolate
in interface javax.validation.MessageInterpolator
public String interpolate(String message, javax.validation.MessageInterpolator.Context context, Locale locale)
interpolate
in interface javax.validation.MessageInterpolator
message
- 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–2023 Oracle Corporation. All rights reserved.