public class StringTableService
extends java.lang.Object
| Constructor and Description |
|---|
StringTableService() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getString(java.lang.String key)
Lookup and return the string table entry corresponding to the given key.
|
static java.lang.String[] |
getStringTableResourceCandidates(java.util.Locale locale)
Get the list of resource files to look for based on the locale.
|
static boolean |
isLocalizedResourceAvailable()
Check to see if a localized string table is loaded.
|
static void |
setStringTableLocale(java.util.Locale locale)
Load the string table for the specified
Locale. |
public static java.lang.String getString(java.lang.String key)
setStringTableLocalekey: - the key to look for in the string table properties file.public static void setStringTableLocale(java.util.Locale locale)
Locale.locale: - the Locale to load the string table for.public static boolean isLocalizedResourceAvailable()
public static java.lang.String[] getStringTableResourceCandidates(java.util.Locale locale)
locale - the locale to get resource files for. If null
is passed in the default locale is used.