当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
ParentChildResourceBundle - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.common.util
Class ParentChildResourceBundle
java.lang.Object
java.util.ResourceBundle
org.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.
- Version:
- $Revision: 5451 $
- Author:
- Julien Viet, Thomas Heute
Nested classes inherited from class java.util.ResourceBundle |
|
Field Summary |
private java.util.Locale |
locale
The bundle locale. |
private java.util.Map |
values
The bundle values. |
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. |
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 |
locale
private java.util.Locale locale
- The bundle locale.
values
private java.util.Map values
- The bundle values.
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 nullchild
- the child
- Throws:
java.lang.IllegalArgumentException
- if the child is null or its locale is null
getLocale
public java.util.Locale getLocale()
handleGetObject
protected java.lang.Object handleGetObject(java.lang.String key)
getKeys
public java.util.Enumeration getKeys()