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.voidnotationDecl(String name, String publicId, String systemId) voidEnables the user of the TransformerHandler to set the to set the Result for the transformation.voidsetSystemId(String systemID) Set the base ID (URI or system ID) from where relative URLs will be resolved.voidunparsedEntityDecl(String name, String publicId, String systemId, String notationName) Methods inherited from class 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, startPrefixMappingMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContentHandler
characters, declaration, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMappingMethods inherited from interface 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:
setResultin 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:
setSystemIdin 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:
getSystemIdin interfaceTransformerHandler- Returns:
- The systemID that was set with
setSystemId(String).
-
getTransformer
Get the Transformer associated with this handler, which is needed in order to set parameters and output properties.- Specified by:
getTransformerin interfaceTransformerHandler
-
notationDecl
- Specified by:
notationDeclin interfaceDTDHandler- Throws:
SAXException
-
unparsedEntityDecl
public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException - Specified by:
unparsedEntityDeclin interfaceDTDHandler- Throws:
SAXException
-