public final class NullLocalizable extends Object implements Localizable
Localizable that wraps a non-localizable string.NOT_LOCALIZABLE| Constructor and Description |
|---|
NullLocalizable(String msg) |
| 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) |
String |
getResourceBundleName() |
public NullLocalizable(String msg)
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 Localizablepublic String getResourceBundleName()
getResourceBundleName in interface Localizablepublic ResourceBundle getResourceBundle(Locale locale)
getResourceBundle in interface LocalizableCopyright © 2005–2017 Oracle Corporation. All rights reserved.