public class BaseMessages extends Object
Modifier and Type | Field and Description |
---|---|
static String |
RESOURCE_BUNDLE
The default resource bundle name to be used
|
Constructor and Description |
---|
BaseMessages() |
Modifier and Type | Method and Description |
---|---|
static ResourceBundle |
getResourceBundle()
Get the default resource bundle using the default locale
|
static ResourceBundle |
getResourceBundle(Locale locale) |
static ResourceBundle |
getResourceBundle(String bundleName)
Get the resource bundle
|
static ResourceBundle |
getResourceBundle(String bundleName,
Locale locale)
Get a resource bundle using a specific locale
|
static String |
getString(Locale locale,
String bundleName,
String key,
Object... parameters) |
static String |
getString(String key)
Get string for the key from the default bundle
|
static String |
getString(String key,
Object... arguments)
Get the string value for the key
|
static String |
getString(String bundleName,
String key)
Get the string value for the key from a specific bundle
|
static String |
getString(String bundleName,
String key,
Object... arguments) |
public static final String RESOURCE_BUNDLE
public static ResourceBundle getResourceBundle()
public static ResourceBundle getResourceBundle(String bundleName)
bundleName
- the bundle namepublic static ResourceBundle getResourceBundle(String bundleName, Locale locale)
bundleName
- the bundle namelocale
- the localepublic static ResourceBundle getResourceBundle(Locale locale)
locale
- the localepublic static String getString(String key)
key
- the keypublic static String getString(String bundleName, String key)
bundleName
- the bundle namekey
- the keypublic static String getString(String key, Object... arguments)
key
- the keyarguments
- the parameterspublic static String getString(String bundleName, String key, Object... arguments)
bundleName
- the name of the bundle to usekey
- the keyarguments
- the parameters to be used