Package org.opencms.i18n
Class CmsVfsResourceBundle
java.lang.Object
java.util.ResourceBundle
org.opencms.i18n.CmsVfsResourceBundle
- All Implemented Interfaces:
I_CmsResourceBundle
Resource bundle which loads its data from a VFS resource.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceImplementors of this interface are responsible for actually loading the data from the VFS.Nested classes/interfaces inherited from class java.util.ResourceBundle
ResourceBundle.Control -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static CmsObjectThe CMS context to use.protected CmsVfsResourceBundle.I_LoaderThe bundle loader instance to use.protected CmsVfsBundleParametersThe VFS bundle parameters.static final StringName constant for the 'properties' vfs bundle type.static final StringName constant for the 'xml content' vfs bundle type.Fields inherited from class java.util.ResourceBundle
parent -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new VFS bundle instance. -
Method Summary
Modifier and TypeMethodDescriptiongetClone()Creates a clone of the resource bundle.protected StringReturns the path of the file to read the message data from.getKeys()Gets the bundle parameters.protected ObjecthandleGetObject(String key) static voidsetCmsObject(CmsObject cms) Sets the CMS context used by this class.voidSets the locale used for this resource bundle.voidSets the parent bundle.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
-
TYPE_PROPERTIES
Name constant for the 'properties' vfs bundle type.- See Also:
-
TYPE_XML
Name constant for the 'xml content' vfs bundle type.- See Also:
-
m_cms
The CMS context to use. -
m_loader
The bundle loader instance to use. -
m_parameters
The VFS bundle parameters.
-
-
Constructor Details
-
CmsVfsResourceBundle
Creates a new VFS bundle instance.- Parameters:
params- the VFS bundle parameters
-
-
Method Details
-
setCmsObject
Sets the CMS context used by this class.This can be never called more than once, and is usually called on startup.
- Parameters:
cms- the CMS context to set
-
getClone
Description copied from interface:I_CmsResourceBundleCreates a clone of the resource bundle.(This may not actually clone the resource bundle if it is immutable).
- Specified by:
getClonein interfaceI_CmsResourceBundle- Returns:
- a clone of the resource bundle
- See Also:
-
getKeys
- Specified by:
getKeysin classResourceBundle- See Also:
-
getLocale
- Overrides:
getLocalein classResourceBundle- See Also:
-
getParameters
Gets the bundle parameters.- Returns:
- the bundle parameters
-
setLocale
Description copied from interface:I_CmsResourceBundleSets the locale used for this resource bundle.- Specified by:
setLocalein interfaceI_CmsResourceBundle- Parameters:
locale- the locale to set- See Also:
-
setParent
Description copied from interface:I_CmsResourceBundleSets the parent bundle.- Specified by:
setParentin interfaceI_CmsResourceBundle- Overrides:
setParentin classResourceBundle- Parameters:
p- the parent bundle to set- See Also:
-
getFilePath
Returns the path of the file to read the message data from.- Returns:
- the root path of the file containing the message data
-
handleGetObject
- Specified by:
handleGetObjectin classResourceBundle- See Also:
-
handleKeySet
- Overrides:
handleKeySetin classResourceBundle- See Also:
-