public class MessageInterpolatorImpl extends Object implements javax.validation.MessageInterpolator
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 interpolateannotationParameters
- the parameters of the annotation for which to interpolate this messagelocale
- the Locale
to use for the resource bundle.Copyright © 2018. All rights reserved.