public class RootResourceBundle extends ResourceBundle
RootResourceBundle is an extremely simple resource bundle
which is used as the root resource bundle for the resource bundle hierarchies
provided by the JcrResourceBundleProvider. It has the following
functionality:
getLocale() returns a pseudo locale with empty values for
all fields (language, country, and variant)handleGetObject(String) always returns the provided
key as the valuegetKeys() method always returns an empty enumerationResourceBundle.Controlparent| Constructor and Description |
|---|
RootResourceBundle() |
| Modifier and Type | Method and Description |
|---|---|
Enumeration<String> |
getKeys()
Always returns an empty enumeration.
|
Locale |
getLocale()
Returns a
Locale with empty language, country, and variant. |
protected Object |
handleGetObject(String key)
Always returns the
key parameter as its value. |
clearCache, clearCache, containsKey, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getObject, getString, getStringArray, handleKeySet, keySet, setParentpublic Locale getLocale()
Locale with empty language, country, and variant.getLocale in class ResourceBundleprotected Object handleGetObject(String key)
key parameter as its value.handleGetObject in class ResourceBundlepublic Enumeration<String> getKeys()
getKeys in class ResourceBundleCopyright © 2007–2015 The Apache Software Foundation. All rights reserved.