Package com.icl.saxon
Class TemplatesHandlerImpl
java.lang.Object
com.icl.saxon.ContentEmitter
com.icl.saxon.TemplatesHandlerImpl
- All Implemented Interfaces:
TemplatesHandler
,ContentHandler
,DTDHandler
,LexicalHandler
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
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) TreeBuilder
(package private) TransformerFactoryImpl
(package private) String
(package private) Templates
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Create a TemplatesHandlerImpl and initialise variables. -
Method Summary
Modifier and TypeMethodDescriptionGet the systemId of the documentGet the Templates object to used for a transformationvoid
setSystemId
(String url) Set the SystemId of the documentMethods inherited from class com.icl.saxon.ContentEmitter
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, setEmitter, setNamePool, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping, unparsedEntityDecl
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
characters, declaration, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
-
Field Details
-
factory
TransformerFactoryImpl factory -
builder
TreeBuilder builder -
templates
Templates templates -
systemId
String systemId
-
-
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:
getTemplates
in interfaceTemplatesHandler
-
setSystemId
Set the SystemId of the document- Specified by:
setSystemId
in interfaceTemplatesHandler
-
getSystemId
Get the systemId of the document- Specified by:
getSystemId
in interfaceTemplatesHandler
-