|
Spatial DataBlade JAVA API v8.21 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageProvider
A MessageProvider generates localized messages based on a message code and replacement arguments.
Method Summary | |
---|---|
java.util.Locale |
getLocale()
Gets the locale used for error messages. |
java.lang.String |
getMessage(int code,
java.lang.Object[] args)
Creates a message from the specified code and replacement arguments, localized to the current locale. |
java.lang.String |
getMessage(int code,
java.lang.Object[] args,
java.util.Locale locale)
Creates a localized message from the specified message code and replacement arguments. |
void |
setLocale(java.util.Locale locale)
Sets the locale used for error messages. |
Method Detail |
---|
void setLocale(java.util.Locale locale)
locale
- The new locale.java.util.Locale getLocale()
java.lang.String getMessage(int code, java.lang.Object[] args, java.util.Locale locale)
code
- The message code.args
- The arguments to be used as replacement text
in the message created.locale
- The requested locale of the message to be created.
java.lang.String getMessage(int code, java.lang.Object[] args)
code
- The key for the message text.args
- The arguments to be used as replacement text
in the message created.
|
Spatial DataBlade JAVA API v8.21 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |