|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MessageInterpolator
Interpolates a given constraint violation message.
Implementations should be as tolerant as possible on syntax errors. Implementations must be thread-safe.
| Nested Class Summary | |
|---|---|
static interface |
MessageInterpolator.Context
Information related to the interpolation context. |
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
String interpolate(String messageTemplate,
MessageInterpolator.Context context)
MessageInterpolator
implementation. See the implementation documentation for more detail.
messageTemplate - the message to interpolatecontext - contextual information related to the interpolation
String 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 message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||