org.apache.sling.i18n.impl
Class RootResourceBundle
java.lang.Object
java.util.ResourceBundle
org.apache.sling.i18n.impl.RootResourceBundle
public class RootResourceBundle
- extends ResourceBundle
The 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:
- The
getLocale() returns a pseudo locale with empty values for
all fields (language, country, and variant)
- The
handleGetObject(String) always returns the provided
key as the value
- The
getKeys() method always returns an empty enumeration
| Methods inherited from class java.util.ResourceBundle |
clearCache, clearCache, containsKey, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getObject, getString, getStringArray, handleKeySet, keySet, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RootResourceBundle
public RootResourceBundle()
getLocale
public Locale getLocale()
- Returns a
Locale with empty language, country, and variant.
- Overrides:
getLocale in class ResourceBundle
handleGetObject
protected Object handleGetObject(String key)
- Always returns the
key parameter as its value.
- Specified by:
handleGetObject in class ResourceBundle
getKeys
public Enumeration<String> getKeys()
- Always returns an empty enumeration.
- Specified by:
getKeys in class ResourceBundle
Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.