org.apache.sling.i18n.impl
Class RootResourceBundle

java.lang.Object
  extended by java.util.ResourceBundle
      extended by 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:


Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.ResourceBundle
ResourceBundle.Control
 
Field Summary
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
RootResourceBundle()
           
 
Method Summary
 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.
 
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
 

Constructor Detail

RootResourceBundle

public RootResourceBundle()
Method Detail

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-2013 The Apache Software Foundation. All Rights Reserved.