Package org.opencms.i18n
Class CmsListResourceBundle
java.lang.Object
java.util.ResourceBundle
java.util.ListResourceBundle
org.opencms.i18n.CmsListResourceBundle
- All Implemented Interfaces:
I_CmsResourceBundle
A list based resource bundle that with increased visibility of some key methods.
- Since:
- 8.0.1
- See Also:
-
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMessage
(String key, String value) Adds a message to this list bundle.getClone()
Returns a typed clone of this resource bundle.Object[][]
void
Sets the locale used for this resource bundle.void
Sets the parent bundle.Methods inherited from class java.util.ListResourceBundle
getKeys, handleGetObject, handleKeySet
Methods inherited from class java.util.ResourceBundle
clearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getObject, getString, getStringArray, keySet
-
Field Details
-
m_locale
The locale to use.
-
-
Constructor Details
-
CmsListResourceBundle
public CmsListResourceBundle()Create a new list resource bundle for the XML.
-
-
Method Details
-
addMessage
Adds a message to this list bundle.Please note: All additions after the initial call to
getContents()
are ignored.- Parameters:
key
- the message keyvalue
- the message itself
-
getClone
Returns a typed clone of this resource bundle.This is required in order to make sure the objects in the permanent cache of the list based resource bundles which are usually read from the XML are never changed.
- Specified by:
getClone
in interfaceI_CmsResourceBundle
- Returns:
- a typed clone of this resource bundle
-
getContents
- Specified by:
getContents
in classListResourceBundle
- See Also:
-
getLocale
- Overrides:
getLocale
in classResourceBundle
- See Also:
-
setLocale
Sets the locale used for this resource bundle.- Specified by:
setLocale
in interfaceI_CmsResourceBundle
- Parameters:
l
- the locale to set
-
setParent
Description copied from interface:I_CmsResourceBundle
Sets the parent bundle.- Specified by:
setParent
in interfaceI_CmsResourceBundle
- Overrides:
setParent
in classResourceBundle
- Parameters:
p
- the parent bundle to set- See Also:
-