DefaultNlsTemplateResolver
@Deprecated public class NlsReversedResourceBundleImpl extends Object implements NlsReversedResourceBundle
Map
for a ResourceBundle
. It allows to get the key for a
message
.Modifier and Type | Field and Description |
---|---|
private Map<String,String> |
message2KeyMap
Deprecated.
|
private String |
name
Deprecated.
|
private ResourceBundle |
resourceBundle
Deprecated.
|
Constructor and Description |
---|
NlsReversedResourceBundleImpl(ResourceBundle resourceBundle)
Deprecated.
The constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getKey(String message)
Deprecated.
This method is the inverse of
ResourceBundle.getString(String) . |
String |
getName()
Deprecated.
|
String |
getString(String key)
Deprecated.
|
private final String name
private final ResourceBundle resourceBundle
public NlsReversedResourceBundleImpl(ResourceBundle resourceBundle)
resourceBundle
- is the ResourceBundle
.public String getName()
getName
in interface NlsResourceBundle
bundle name
in case of a
ResourceBundle
and the {link NlsBundleLocation bundle location} in case of an
NlsBundle
.public String getKey(String message)
ResourceBundle.getString(String)
.getKey
in interface NlsReversedResourceBundle
message
- is the message
for which the key is requested.message
or null
if no such message is contained in the associated
ResourceBundle
.public String getString(String key) throws MissingResourceException
getString
in interface NlsResourceBundle
key
- is the key of the localized string to get.String
for the given key
.MissingResourceException
- if the requested object does NOT exist.ResourceBundle.getString(String)
,
NlsBundle
Copyright © 2001–2016 mmm-Team. All rights reserved.