Package org.opencms.file.wrapper
Class CmsResourceExtensionWrapperXmlContent
java.lang.Object
org.opencms.file.wrapper.A_CmsResourceWrapper
org.opencms.file.wrapper.A_CmsResourceExtensionWrapper
org.opencms.file.wrapper.CmsResourceExtensionWrapperXmlContent
- All Implemented Interfaces:
I_CmsResourceWrapper
A resource type wrapper for xml content files, which adds the correct file extension "xml"
to the resources.
- Since:
- 6.5.6
-
Field Summary
Fields inherited from class org.opencms.file.wrapper.A_CmsResourceWrapper
m_isWrappedResource
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkTypeId
(int typeId) Checks if the type id belongs to this resource wrapper.protected String
Returns the extension to add and/or remove to/from the resource.Methods inherited from class org.opencms.file.wrapper.A_CmsResourceExtensionWrapper
copyResource, createResource, deleteResource, getLock, isWrappedResource, lockResource, moveResource, readFile, readResource, restoreLink, rewriteLink, unlockResource, wrapResource, writeFile
Methods inherited from class org.opencms.file.wrapper.A_CmsResourceWrapper
addResourcesToFolder, configure
-
Constructor Details
-
CmsResourceExtensionWrapperXmlContent
-
-
Method Details
-
checkTypeId
Description copied from class:A_CmsResourceExtensionWrapper
Checks if the type id belongs to this resource wrapper.- Specified by:
checkTypeId
in classA_CmsResourceExtensionWrapper
- Parameters:
typeId
- the type id to check- Returns:
- true if the type id belongs to this wrapper otherwise false
- See Also:
-
getExtension
Description copied from class:A_CmsResourceExtensionWrapper
Returns the extension to add and/or remove to/from the resource.- Specified by:
getExtension
in classA_CmsResourceExtensionWrapper
- Returns:
- the extension to use
- See Also:
-