|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.bval.jsr303.DefaultMessageInterpolator
public class DefaultMessageInterpolator
Description: Resource bundle backed message interpolator.
This message resolver resolve message descriptors
into human-readable messages. It uses ResourceBundles to find the messages.
This class is threadsafe.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface javax.validation.MessageInterpolator |
|---|
MessageInterpolator.Context |
| Constructor Summary | |
|---|---|
DefaultMessageInterpolator()
Create a new DefaultMessageInterpolator instance. |
|
DefaultMessageInterpolator(ResourceBundle resourceBundle)
Create a new DefaultMessageInterpolator instance. |
|
| Method Summary | |
|---|---|
String |
interpolate(String message,
MessageInterpolator.Context context)
|
String |
interpolate(String message,
MessageInterpolator.Context context,
Locale locale)
|
void |
setLocale(Locale locale)
Set the default locale used by this DefaultMessageInterpolator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultMessageInterpolator()
public DefaultMessageInterpolator(ResourceBundle resourceBundle)
resourceBundle - | Method Detail |
|---|
public String interpolate(String message,
MessageInterpolator.Context context)
interpolate in interface MessageInterpolator
public String interpolate(String message,
MessageInterpolator.Context context,
Locale locale)
interpolate in interface MessageInterpolatorpublic void setLocale(Locale locale)
DefaultMessageInterpolator.
locale -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||