public class CmsListResourceBundle extends java.util.ListResourceBundle implements I_CmsResourceBundle
CmsResourceBundleLoader| 限定符和类型 | 字段和说明 |
|---|---|
protected java.util.Locale |
m_locale
The locale to use.
|
| 构造器和说明 |
|---|
CmsListResourceBundle()
Create a new list resource bundle for the XML.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
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 在接口中 I_CmsResourceBundlepublic java.lang.Object[][] getContents()
getContents 在类中 java.util.ListResourceBundleListResourceBundle.getContents()public java.util.Locale getLocale()
getLocale 在类中 java.util.ResourceBundleResourceBundle.getLocale()public void setLocale(java.util.Locale l)
setLocale 在接口中 I_CmsResourceBundlel - the locale to setpublic void setParent(java.util.ResourceBundle p)
I_CmsResourceBundlesetParent 在接口中 I_CmsResourceBundlesetParent 在类中 java.util.ResourceBundlep - the parent bundle to setResourceBundle.setParent(java.util.ResourceBundle)