Class TemplatesHandlerImpl
java.lang.Object
net.sf.saxon.event.ReceivingContentHandler
net.sf.saxon.TemplatesHandlerImpl
- All Implemented Interfaces:
TemplatesHandler, SourceLocator, LocationProvider, SaxonLocator, SourceLocationProvider, ContentHandler, DTDHandler, LexicalHandler, Locator
TemplatesHandlerImpl implements the javax.xml.transform.sax.TemplatesHandler
interface. It acts as a ContentHandler which receives a stream of
SAX events representing a stylesheet, and returns a Templates object that
represents the compiled form of this stylesheet.
- Author:
- Michael H. Kay
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTemplatesHandlerImpl(Configuration config) Create a TemplatesHandlerImpl and initialise variables. -
Method Summary
Modifier and TypeMethodDescriptionGet the systemId of the documentGet the Templates object to used for a transformationvoidsetDocumentLocator(Locator locator) Callback interface for SAX: not for application usevoidsetSystemId(String url) Set the SystemId of the documentMethods inherited from class ReceivingContentHandler
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, getColumnNumber, getConfiguration, getLineNumber, getLineNumber, getPipelineConfiguration, getPublicId, getSystemId, ignorableWhitespace, isIgnoringIgnorableWhitespace, notationDecl, processingInstruction, reset, setIgnoreIgnorableWhitespace, setPipelineConfiguration, setReceiver, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping, unparsedEntityDeclMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContentHandler
characters, declaration, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, skippedEntity, startDocument, startElement, startPrefixMapping
-
Constructor Details
-
TemplatesHandlerImpl
Create a TemplatesHandlerImpl and initialise variables. The constructor is protected, because the Filter should be created using newTemplatesHandler() in the SAXTransformerFactory class
-
-
Method Details
-
getTemplates
Get the Templates object to used for a transformation- Specified by:
getTemplatesin interfaceTemplatesHandler
-
setSystemId
Set the SystemId of the document- Specified by:
setSystemIdin interfaceTemplatesHandler
-
setDocumentLocator
Callback interface for SAX: not for application use- Specified by:
setDocumentLocatorin interfaceContentHandler- Overrides:
setDocumentLocatorin classReceivingContentHandler
-
getSystemId
Get the systemId of the document- Specified by:
getSystemIdin interfaceLocator- Specified by:
getSystemIdin interfaceSourceLocator- Specified by:
getSystemIdin interfaceTemplatesHandler- Overrides:
getSystemIdin classReceivingContentHandler- Returns:
- A string containing the system identifier, or null if none is available.
-