public class CmsListResourceBundle extends java.util.ListResourceBundle implements I_CmsResourceBundle
CmsResourceBundleLoader| Modifier and Type | Field and Description |
|---|---|
protected java.util.Locale |
m_locale
The locale to use.
|
| Constructor and Description |
|---|
CmsListResourceBundle()
Create a new list resource bundle for the XML.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMessage(java.lang.String key,
java.lang.String value)
Adds a message to this list bundle.
|
CmsListResourceBundle |
getClone()
Returns a typed clone of this resource bundle.
|
java.lang.Object[][] |
getContents() |
java.util.Locale |
getLocale() |
void |
setLocale(java.util.Locale l)
Sets the locale used for this resource bundle.
|
void |
setParent(java.util.ResourceBundle p)
Sets the parent bundle.
|
protected java.util.Locale m_locale
public CmsListResourceBundle()
public void addMessage(java.lang.String key, java.lang.String value)
Please note:
All additions after the initial call to getContents() are ignored.
key - the message keyvalue - the message itselfpublic CmsListResourceBundle getClone()
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.
getClone in interface I_CmsResourceBundlepublic java.lang.Object[][] getContents()
getContents in class java.util.ListResourceBundleListResourceBundle.getContents()public java.util.Locale getLocale()
getLocale in class java.util.ResourceBundleResourceBundle.getLocale()public void setLocale(java.util.Locale l)
setLocale in interface I_CmsResourceBundlel - the locale to setpublic void setParent(java.util.ResourceBundle p)
I_CmsResourceBundlesetParent in interface I_CmsResourceBundlesetParent in class java.util.ResourceBundlep - the parent bundle to setResourceBundle.setParent(java.util.ResourceBundle)