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()
Localizable
getKey
in interface Localizable
Localizable.NOT_LOCALIZABLE
,
that means the message is not localizable, and
the first item of Localizable.getArguments()
array
holds a String.public Object[] getArguments()
Localizable
getArguments
in interface Localizable
public String getResourceBundleName()
getResourceBundleName
in interface Localizable
public ResourceBundle getResourceBundle(Locale locale)
getResourceBundle
in interface Localizable
Copyright © 2024 Oracle Corporation. All rights reserved.