Package net.sf.saxon
Class TemplatesHandlerImpl
- java.lang.Object
-
- net.sf.saxon.event.ReceivingContentHandler
-
- net.sf.saxon.TemplatesHandlerImpl
-
- All Implemented Interfaces:
javax.xml.transform.sax.TemplatesHandler
,javax.xml.transform.SourceLocator
,LocationProvider
,SaxonLocator
,SourceLocationProvider
,org.xml.sax.ContentHandler
,org.xml.sax.DTDHandler
,org.xml.sax.ext.LexicalHandler
,org.xml.sax.Locator
public class TemplatesHandlerImpl extends ReceivingContentHandler implements javax.xml.transform.sax.TemplatesHandler
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
Constructors Modifier Constructor Description protected
TemplatesHandlerImpl(Configuration config)
Create a TemplatesHandlerImpl and initialise variables.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getSystemId()
Get the systemId of the documentjavax.xml.transform.Templates
getTemplates()
Get the Templates object to used for a transformationvoid
setDocumentLocator(org.xml.sax.Locator locator)
Callback interface for SAX: not for application usevoid
setSystemId(java.lang.String url)
Set the SystemId of the document-
Methods inherited from class net.sf.saxon.event.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, unparsedEntityDecl
-
-
-
-
Constructor Detail
-
TemplatesHandlerImpl
protected TemplatesHandlerImpl(Configuration config)
Create a TemplatesHandlerImpl and initialise variables. The constructor is protected, because the Filter should be created using newTemplatesHandler() in the SAXTransformerFactory class
-
-
Method Detail
-
getTemplates
public javax.xml.transform.Templates getTemplates()
Get the Templates object to used for a transformation- Specified by:
getTemplates
in interfacejavax.xml.transform.sax.TemplatesHandler
-
setSystemId
public void setSystemId(java.lang.String url)
Set the SystemId of the document- Specified by:
setSystemId
in interfacejavax.xml.transform.sax.TemplatesHandler
-
setDocumentLocator
public void setDocumentLocator(org.xml.sax.Locator locator)
Callback interface for SAX: not for application use- Specified by:
setDocumentLocator
in interfaceorg.xml.sax.ContentHandler
- Overrides:
setDocumentLocator
in classReceivingContentHandler
-
getSystemId
public java.lang.String getSystemId()
Get the systemId of the document- Specified by:
getSystemId
in interfaceorg.xml.sax.Locator
- Specified by:
getSystemId
in interfacejavax.xml.transform.SourceLocator
- Specified by:
getSystemId
in interfacejavax.xml.transform.sax.TemplatesHandler
- Overrides:
getSystemId
in classReceivingContentHandler
- Returns:
- A string containing the system identifier, or null if none is available.
-
-