public final class LocalizableMessage extends Object implements Localizable
NOT_LOCALIZABLE| Constructor and Description |
|---|
LocalizableMessage(String bundlename,
LocalizableMessageFactory.ResourceBundleSupplier rbSupplier,
String key,
Object... args) |
LocalizableMessage(String bundlename,
String key,
Object... args)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Object[] |
getArguments()
Returns the arguments for message formatting.
|
String |
getKey()
Gets the key in the resource bundle.
|
ResourceBundle |
getResourceBundle(Locale locale)
Get the resource bundle of the given localization.
|
String |
getResourceBundleName()
Get the name of the localization messages resource bundle.
|
@Deprecated public LocalizableMessage(String bundlename, String key, Object... args)
public LocalizableMessage(String bundlename, LocalizableMessageFactory.ResourceBundleSupplier rbSupplier, String key, Object... args)
public String getKey()
LocalizablegetKey in interface LocalizableLocalizable.NOT_LOCALIZABLE, that means the
message is not localizable, and the first item of Localizable.getArguments()
array holds a String.public Object[] getArguments()
LocalizablegetArguments in interface Localizablenull.public String getResourceBundleName()
LocalizablegetResourceBundleName in interface Localizablepublic ResourceBundle getResourceBundle(Locale locale)
LocalizablegetResourceBundle in interface Localizablelocale - the given LocaleCopyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.