public class MessageInterpolatorImpl
extends java.lang.Object
implements javax.validation.MessageInterpolator
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_VALIDATION_MESSAGES
The name of the default message bundle.
|
static java.lang.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 |
|---|---|
java.lang.String |
interpolate(java.lang.String message,
javax.validation.MessageInterpolator.Context context) |
java.lang.String |
interpolate(java.lang.String message,
javax.validation.MessageInterpolator.Context context,
java.util.Locale locale)
Runs the message interpolation according to algorithm specified in JSR 303.
|
public static final java.lang.String DEFAULT_VALIDATION_MESSAGES
public static final java.lang.String USER_VALIDATION_MESSAGES
public java.lang.String interpolate(java.lang.String message,
javax.validation.MessageInterpolator.Context context)
interpolate in interface javax.validation.MessageInterpolatorpublic java.lang.String interpolate(java.lang.String message,
javax.validation.MessageInterpolator.Context context,
java.util.Locale locale)
interpolate in interface javax.validation.MessageInterpolatormessage - the message to interpolateannotationParameters - the parameters of the annotation for which to interpolate this messagelocale - the Locale to use for the resource bundle.Copyright © 2013 Oracle Corporation. All Rights Reserved.