|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.clapper.util.misc.BundleUtil
public final class BundleUtil
ResourceBundle utilities to aid in localization.
| Method Summary | |
|---|---|
static java.lang.String |
getMessage(java.lang.String bundleName,
java.util.Locale locale,
java.lang.String key,
java.lang.Object[] params)
Get a localized message from the bundle. |
static java.lang.String |
getMessage(java.lang.String bundleName,
java.util.Locale locale,
java.lang.String key,
java.lang.String defaultMsg)
Get a localized message from a bundle. |
static java.lang.String |
getMessage(java.lang.String bundleName,
java.util.Locale locale,
java.lang.String key,
java.lang.String defaultMsg,
java.lang.Object[] params)
Get a localized message from the bundle. |
static java.lang.String |
getMessage(java.lang.String bundleName,
java.lang.String key,
java.lang.Object[] params)
Get a message from the bundle using the default locale. |
static java.lang.String |
getString(java.lang.String bundleName,
java.lang.String key)
Get a string from a bundle, using the default locale. |
static java.lang.String |
getString(java.lang.String bundleName,
java.lang.String key,
java.lang.String defaultMsg)
Get a string from a bundle, using the default locale. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String getString(java.lang.String bundleName,
java.lang.String key)
bundleName - the bundle namekey - the key to look up
public static java.lang.String getString(java.lang.String bundleName,
java.lang.String key,
java.lang.String defaultMsg)
bundleName - the bundle namekey - the key to look updefaultMsg - the default value, or null
public static java.lang.String getMessage(java.lang.String bundleName,
java.util.Locale locale,
java.lang.String key,
java.lang.String defaultMsg)
bundleName - the name of the resource bundlelocale - the localekey - the keydefaultMsg - the default message
public static java.lang.String getMessage(java.lang.String bundleName,
java.lang.String key,
java.lang.Object[] params)
bundleName - the name of the resource bundlekey - the keyparams - parameters for the message
public static java.lang.String getMessage(java.lang.String bundleName,
java.util.Locale locale,
java.lang.String key,
java.lang.String defaultMsg,
java.lang.Object[] params)
bundleName - the name of the resource bundlelocale - the localekey - the keydefaultMsg - the default messageparams - parameters for the message
public static java.lang.String getMessage(java.lang.String bundleName,
java.util.Locale locale,
java.lang.String key,
java.lang.Object[] params)
bundleName - the name of the resource bundlelocale - the localekey - the keyparams - parameters for the message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||