org.opencms.file.wrapper
Class CmsResourceExtensionWrapperXmlPage

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.CmsResourceExtensionWrapperXmlPage
All Implemented Interfaces:
I_CmsResourceWrapper

public class CmsResourceExtensionWrapperXmlPage
extends A_CmsResourceExtensionWrapper

A resource type wrapper for xml pages, which adds the correct file extension "xml" to the resources.

Since:
6.5.6
Version:
$Revision: 1.9 $
Author:
Peter Bonrad

Field Summary
 
Fields inherited from class org.opencms.file.wrapper.A_CmsResourceWrapper
m_isWrappedResource
 
Constructor Summary
CmsResourceExtensionWrapperXmlPage()
           
 
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

CmsResourceExtensionWrapperXmlPage

public CmsResourceExtensionWrapperXmlPage()
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()