public class CmsVfsResourceBundle extends java.util.ResourceBundle implements I_CmsResourceBundle
限定符和类型 | 类和说明 |
---|---|
static interface |
CmsVfsResourceBundle.I_Loader
Implementors of this interface are responsible for actually loading the data from the VFS.
|
限定符和类型 | 字段和说明 |
---|---|
protected static CmsObject |
m_cms
The CMS context to use.
|
protected CmsVfsResourceBundle.I_Loader |
m_loader
The bundle loader instance to use.
|
protected CmsVfsBundleParameters |
m_parameters
The VFS bundle parameters.
|
static java.lang.String |
TYPE_PROPERTIES
Name constant for the 'properties' vfs bundle type.
|
static java.lang.String |
TYPE_XML
Name constant for the 'xml content' vfs bundle type.
|
构造器和说明 |
---|
CmsVfsResourceBundle(CmsVfsBundleParameters params)
Creates a new VFS bundle instance.
|
限定符和类型 | 方法和说明 |
---|---|
CmsVfsResourceBundle |
getClone()
Creates a clone of the resource bundle.
|
protected java.lang.String |
getFilePath()
Returns the path of the file to read the message data from.
|
java.util.Enumeration<java.lang.String> |
getKeys() |
java.util.Locale |
getLocale() |
protected java.lang.Object |
handleGetObject(java.lang.String key) |
protected java.util.Set<java.lang.String> |
handleKeySet() |
static void |
setCmsObject(CmsObject cms)
Sets the CMS context used by this class.
|
void |
setLocale(java.util.Locale locale)
Sets the locale used for this resource bundle.
|
void |
setParent(java.util.ResourceBundle p)
Sets the parent bundle.
|
public static final java.lang.String TYPE_PROPERTIES
public static final java.lang.String TYPE_XML
protected static CmsObject m_cms
protected CmsVfsResourceBundle.I_Loader m_loader
protected CmsVfsBundleParameters m_parameters
public CmsVfsResourceBundle(CmsVfsBundleParameters params)
params
- the VFS bundle parameterspublic static void setCmsObject(CmsObject cms)
This can be never called more than once, and is usually called on startup.
cms
- the CMS context to setpublic CmsVfsResourceBundle getClone()
I_CmsResourceBundle
(This may not actually clone the resource bundle if it is immutable).
getClone
在接口中 I_CmsResourceBundle
I_CmsResourceBundle.getClone()
public java.util.Enumeration<java.lang.String> getKeys()
getKeys
在类中 java.util.ResourceBundle
ResourceBundle.getKeys()
public java.util.Locale getLocale()
getLocale
在类中 java.util.ResourceBundle
ResourceBundle.getLocale()
public void setLocale(java.util.Locale locale)
I_CmsResourceBundle
setLocale
在接口中 I_CmsResourceBundle
locale
- the locale to setI_CmsResourceBundle.setLocale(java.util.Locale)
public void setParent(java.util.ResourceBundle p)
I_CmsResourceBundle
setParent
在接口中 I_CmsResourceBundle
setParent
在类中 java.util.ResourceBundle
p
- the parent bundle to setResourceBundle.setParent(java.util.ResourceBundle)
protected java.lang.String getFilePath()
protected java.lang.Object handleGetObject(java.lang.String key)
handleGetObject
在类中 java.util.ResourceBundle
ResourceBundle.handleGetObject(java.lang.String)
protected java.util.Set<java.lang.String> handleKeySet()
handleKeySet
在类中 java.util.ResourceBundle
ResourceBundle.handleKeySet()