站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.4 API 英文版文档

ParentChildResourceBundle - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.common.util
Class ParentChildResourceBundle

java.lang.Object
  extended byjava.util.ResourceBundle
      extended byorg.jboss.portal.common.util.ParentChildResourceBundle

public class ParentChildResourceBundle
extends java.util.ResourceBundle

This resource bundle takes two resource bundle to make one : - The locale of this resource bundle is given by the child. - For a given key present in the child and the parent, the child value overrides the parent value. The locale used for the bundle is the child locale.


Field Summary
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
ParentChildResourceBundle(java.util.ResourceBundle parent, java.util.ResourceBundle child)
          Construct a new resource bundle whose content is based on the child and parent content.
 
Method Summary
 java.util.Enumeration getKeys()
           
 java.util.Locale getLocale()
           
protected  java.lang.Object handleGetObject(java.lang.String key)
           
 
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
 

Constructor Detail

ParentChildResourceBundle

public ParentChildResourceBundle(java.util.ResourceBundle parent,
                                 java.util.ResourceBundle child)
                          throws java.lang.IllegalArgumentException
Construct a new resource bundle whose content is based on the child and parent content.

Parameters:
parent - the parent eventually null
child - the child
Throws:
java.lang.IllegalArgumentException - if the child is null or its locale is null
Method Detail

getLocale

public java.util.Locale getLocale()

handleGetObject

protected java.lang.Object handleGetObject(java.lang.String key)

getKeys

public java.util.Enumeration getKeys()