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