Class TransformerHandlerImpl
java.lang.Object
org.exolab.adaptx.xslt.util.SAXInput
org.exolab.adaptx.jaxp.transform.sax.TransformerHandlerImpl
- All Implemented Interfaces:
TransformerHandler
,ContentHandler
,DocumentHandler
,DTDHandler
,LexicalHandler
An implemenation of the JAXP TransformerHandler interface
see javax.xml.transform.sax.TransformerHandler for more information
- Version:
- $Revision: 3827 $ $Date: 2003-09-09 06:40:54 +0200 (Tue, 09 Sep 2003) $
- Author:
- Keith Visco
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new TransformerHandlerImplTransformerHandlerImpl
(XSLTStylesheet stylesheet) Creates a new TransformerHandlerImpl with the given XSLTStylesheet to use during the transformation. -
Method Summary
Modifier and TypeMethodDescriptionGet the base ID (URI or system ID) from where relative URLs will be resolved.Get the Transformer associated with this handler, which is needed in order to set parameters and output properties.void
notationDecl
(String name, String publicId, String systemId) void
Enables the user of the TransformerHandler to set the to set the Result for the transformation.void
setSystemId
(String systemID) Set the base ID (URI or system ID) from where relative URLs will be resolved.void
unparsedEntityDecl
(String name, String publicId, String systemId, String notationName) Methods inherited from class org.exolab.adaptx.xslt.util.SAXInput
characters, comment, endCDATA, endDocument, endDTD, endElement, endElement, endEntity, endPrefixMapping, getRoot, ignorableWhitespace, processingInstruction, setDocumentLocator, setOutputHandler, setOutputHandler, setProcessor, setStylesheet, skippedEntity, startCDATA, startDocument, startDTD, startElement, startElement, startEntity, startPrefixMapping
Methods inherited from class java.lang.Object
equals, 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
Methods inherited from interface org.xml.sax.ext.LexicalHandler
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
-
Constructor Details
-
TransformerHandlerImpl
public TransformerHandlerImpl()Creates a new TransformerHandlerImpl -
TransformerHandlerImpl
Creates a new TransformerHandlerImpl with the given XSLTStylesheet to use during the transformation.- Parameters:
stylesheet
- the XSLTStylesheet to use during the transformation
-
-
Method Details
-
setResult
Enables the user of the TransformerHandler to set the to set the Result for the transformation. A result must be set before the events are fired!- Specified by:
setResult
in interfaceTransformerHandler
- Parameters:
result
- A Result instance, should not be null.- Throws:
IllegalArgumentException
- if result is invalid for some reason.
-
setSystemId
Set the base ID (URI or system ID) from where relative URLs will be resolved.- Specified by:
setSystemId
in interfaceTransformerHandler
- Parameters:
systemID
- Base URI for the source tree.
-
getSystemId
Get the base ID (URI or system ID) from where relative URLs will be resolved.- Specified by:
getSystemId
in interfaceTransformerHandler
- Returns:
- The systemID that was set with
setSystemId(java.lang.String)
.
-
getTransformer
Get the Transformer associated with this handler, which is needed in order to set parameters and output properties.- Specified by:
getTransformer
in interfaceTransformerHandler
-
notationDecl
- Specified by:
notationDecl
in interfaceDTDHandler
- Throws:
SAXException
-
unparsedEntityDecl
public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException - Specified by:
unparsedEntityDecl
in interfaceDTDHandler
- Throws:
SAXException
-