public interface Localizable
Modifier and Type | Field and Description |
---|---|
static String |
NOT_LOCALIZABLE
Special constant that represents a message that
is not localizable.
|
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.
|
static final String NOT_LOCALIZABLE
Use of "new" is to create an unique instance.
String getKey()
NOT_LOCALIZABLE
, that means the
message is not localizable, and the first item of getArguments()
array holds a String
.Object[] getArguments()
null
.String getResourceBundleName()
ResourceBundle getResourceBundle(Locale locale)
locale
- the given Locale
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.