Localizablepublic final class NullLocalizable extends java.lang.Object implements Localizable
Localizable that wraps a non-localizable string.NOT_LOCALIZABLE| Constructor | Description |
|---|---|
NullLocalizable(java.lang.String msg) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object[] |
getArguments() |
Returns the arguments for message formatting.
|
java.lang.String |
getKey() |
Gets the key in the resource bundle.
|
java.util.ResourceBundle |
getResourceBundle(java.util.Locale locale) |
|
java.lang.String |
getResourceBundleName() |
public java.lang.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 java.lang.Object[] getArguments()
LocalizablegetArguments in interface Localizablepublic java.lang.String getResourceBundleName()
getResourceBundleName in interface Localizablepublic java.util.ResourceBundle getResourceBundle(java.util.Locale locale)
getResourceBundle in interface LocalizableCopyright © 2017 Oracle Corporation. All rights reserved.