|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.scooterframework.i18n.Messages
public class Messages
Message class provides convenient methods to access i18n messages.
Constructor Summary | |
---|---|
Messages()
|
Method Summary | |
---|---|
static java.lang.String |
get(java.lang.String messageKey)
Returns a message associated with the messageKey. |
static java.lang.String |
get(java.lang.String messageKey,
java.util.Locale locale)
Returns a message associated with the messageKey in the specific locale. |
static java.lang.String |
get(java.lang.String messageKey,
java.util.Locale locale,
java.lang.Object[] values)
Returns a message associated with the messageKey and the values in a specific locale. |
static java.lang.String |
get(java.lang.String messageKey,
java.lang.Object[] values)
Returns a message associated with the messageKey and the values. |
static java.lang.String |
get(java.lang.String messageKey,
java.lang.String language)
Returns a message associated with the messageKey in the specific language. |
static java.lang.String |
get(java.lang.String messageKey,
java.lang.String language,
java.lang.String country)
Returns a message associated with the messageKey in the specific language of the specific country. |
static java.lang.String |
get(java.lang.String messageKey,
java.lang.String language,
java.lang.String country,
java.lang.String variant)
Returns a message associated with the messageKey in the specific language of the specific country's particular variant. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Messages()
Method Detail |
---|
public static java.lang.String get(java.lang.String messageKey)
If there is no message associated with the messageKey in messages property files, the messageKey itself is returned.
messageKey
- a message key in messages resource files
public static java.lang.String get(java.lang.String messageKey, java.lang.String language)
If there is no message associated with the messageKey in messages property files, the messageKey itself is returned.
messageKey
- a message key in messages resource fileslanguage
- ISO Language Code
public static java.lang.String get(java.lang.String messageKey, java.lang.String language, java.lang.String country)
If there is no message associated with the messageKey in messages property files, the messageKey itself is returned.
messageKey
- a message key in messages resource fileslanguage
- ISO Language Codecountry
- ISO Country Code
public static java.lang.String get(java.lang.String messageKey, java.lang.String language, java.lang.String country, java.lang.String variant)
If there is no message associated with the messageKey in messages property files, the messageKey itself is returned.
messageKey
- a message key in messages resource fileslanguage
- ISO Language Codecountry
- ISO Country Codevariant
- Variant string
public static java.lang.String get(java.lang.String messageKey, java.util.Locale locale)
If there is no message associated with the messageKey in messages property files, the messageKey itself is returned.
messageKey
- a message key in messages resource fileslocale
- a specific locale object
public static java.lang.String get(java.lang.String messageKey, java.lang.Object[] values)
If there is no message associated with the messageKey in messages property files, the messageKey itself is returned.
messageKey
- a message key in messages resource filesvalues
- an array of objects to be included in the message
public static java.lang.String get(java.lang.String messageKey, java.util.Locale locale, java.lang.Object[] values)
If there is no message associated with the messageKey in messages property files, the messageKey itself is used as the message.
messageKey
- a message key in messages resource fileslocale
- a specific locale objectvalues
- an array of objects to be included in the message
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |