public interface MessageInterpolator
Implementations should be as tolerant as possible on syntax errors. Implementations must be thread-safe.
修飾子とタイプ | インタフェースと説明 |
---|---|
static interface |
MessageInterpolator.Context
Information related to the interpolation context.
|
修飾子とタイプ | メソッドと説明 |
---|---|
String |
interpolate(String messageTemplate,
MessageInterpolator.Context context)
Interpolates the message template based on the constraint validation context.
|
String |
interpolate(String messageTemplate,
MessageInterpolator.Context context,
Locale locale)
Interpolates the message template based on the constraint validation context.
|
String interpolate(String messageTemplate, MessageInterpolator.Context context)
The locale is defaulted according to the MessageInterpolator
implementation. See the implementation documentation for more detail.
messageTemplate
- the message to interpolatecontext
- contextual information related to the interpolationString interpolate(String messageTemplate, MessageInterpolator.Context context, Locale locale)
Locale
used is provided as a parameter.messageTemplate
- the message to interpolatecontext
- contextual information related to the interpolationlocale
- the locale targeted for the messageCopyright © 2007-2018 Red Hat Inc. All Rights Reserved. Released under the Apache Software License 2.0. Translated by @megascus.