org.opencms.file.wrapper
Class CmsResourceExtensionWrapperXmlContent

java.lang.Object
  extended by org.opencms.file.wrapper.A_CmsResourceWrapper
      extended by org.opencms.file.wrapper.A_CmsResourceExtensionWrapper
          extended by 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
Version:
$Revision: 1.10 $
Author:
Peter Bonrad

Field Summary
 
Fields inherited from class org.opencms.file.wrapper.A_CmsResourceWrapper
m_isWrappedResource
 
Constructor Summary
CmsResourceExtensionWrapperXmlContent()
           
 
Method Summary
protected  boolean checkTypeId(int typeId)
          Checks if the type id belongs to this resource wrapper.
protected  java.lang.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 org.opencms.file.wrapper.A_CmsResourceWrapper
addResourcesToFolder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsResourceExtensionWrapperXmlContent

public CmsResourceExtensionWrapperXmlContent()
Method Detail

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 java.lang.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()