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
public class CmsResourceExtensionWrapperXmlContent
- extends A_CmsResourceExtensionWrapper
A resource type wrapper for xml content files, which adds the correct file extension "xml"
to the resources.
- Since:
- 6.5.6
Method Summary |
protected boolean |
checkTypeId(int typeId)
Checks if the type id belongs to this resource wrapper. |
protected String |
getExtension()
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CmsResourceExtensionWrapperXmlContent
public CmsResourceExtensionWrapperXmlContent()
checkTypeId
protected boolean checkTypeId(int typeId)
- Description copied from class:
A_CmsResourceExtensionWrapper
- Checks if the type id belongs to this resource wrapper.
- Specified by:
checkTypeId
in class A_CmsResourceExtensionWrapper
- Parameters:
typeId
- the type id to check
- Returns:
- true if the type id belongs to this wrapper otherwise false
- See Also:
A_CmsResourceExtensionWrapper.checkTypeId(int)
getExtension
protected String getExtension()
- Description copied from class:
A_CmsResourceExtensionWrapper
- Returns the extension to add and/or remove to/from the resource.
- Specified by:
getExtension
in class A_CmsResourceExtensionWrapper
- Returns:
- the extension to use
- See Also:
A_CmsResourceExtensionWrapper.getExtension()