public class HybrisResourceBundle extends ResourceBundle implements Serializable
HybrisResourceBundle is a
concrete subclass of ResourceBundle that manages resources for a locale using a set of objects from a
serializable map.
See ResourceBundle for more information about resource bundles.ResourceBundle.Controlparent| Constructor and Description |
|---|
HybrisResourceBundle(Locale locale)
Creates a new
HybrisResourceBundle instance for the specified Locale. |
| Modifier and Type | Method and Description |
|---|---|
Enumeration |
getKeys()
Implementation of
ResourceBundle.getKeys(). |
Locale |
getLocale()
Return the
Locale for this HybrisResourceBundle. |
protected Object |
handleGetObject(String key)
Implementation of
ResourceBundle.handleGetObject(String). |
void |
setObject(String key,
Serializable value)
Puts a serializable object with the specified key into the resource bundle.
|
void |
setParent(ResourceBundle parent)
Overrides setParent of ResourceBundle, but requires a
HybrisResourceBundle as parameter. |
void |
setString(String key,
String value)
Puts a
String with the specified key into the resource bundle. |
clearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getObject, getString, getStringArray, handleKeySet, keySetprotected Object handleGetObject(String key) throws MissingResourceException
ResourceBundle.handleGetObject(String).handleGetObject in class ResourceBundlekey - the key of the Object, which should be returned. If there exists no resources for the
specified key, Null is returned.MissingResourceExceptionResourceBundle.handleGetObject(String)public Enumeration getKeys()
ResourceBundle.getKeys().getKeys in class ResourceBundleResourceBundle.getKeys()public void setParent(ResourceBundle parent)
HybrisResourceBundle as parameter. The parent
will provide fall-back functionality if a resource is not found in the current bundle.setParent in class ResourceBundleparent - a HybrisResourceBundle objectIllegalArgumentException - if parent is not a HybrisResourceBundle instance.public Locale getLocale()
Locale for this HybrisResourceBundle.getLocale in class ResourceBundleLocale of this HybrisResourceBundlepublic void setObject(String key, Serializable value)
key - the key of the new entryvalue - the value of the new entryIllegalArgumentException - if key is nullpublic void setString(String key, String value)
String with the specified key into the resource bundle. If there exists an entry for the
specified key, this entry will be overwritten.key - the key of the new entryvalue - the String value of the new entryIllegalArgumentException - if key is nullCopyright © 2017 SAP SE. All Rights Reserved.