Package org.mycore.common.xsl
Class MCRTemplatesSource
java.lang.Object
org.mycore.common.xsl.MCRTemplatesSource
Represents an XSL file that will be used in XSL transformation and which is loaded
as a resource. The object provides helper methods to support caching of the compiled
templates file.
- Author:
- Thomas Scheffler (yagee), Frank Lützenkirchen
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()
Returns the path to the XSL file, for use as a caching keylong
Returns the timestamp the XSL file was last modified on the filesystem.getModifiedHandle
(long checkPeriod) Have to use SAX here to resolve entitiesgetURL()
toString()
-
Constructor Details
-
MCRTemplatesSource
- Parameters:
resource
- the path to the XSL file, which will be loaded as a resource
-
-
Method Details
-
getSource
Have to use SAX here to resolve entities -
getKey
Returns the path to the XSL file, for use as a caching key -
toString
-
getURL
-
getLastModified
public long getLastModified()Returns the timestamp the XSL file was last modified on the filesystem. -
getModifiedHandle
-