org.exolab.adaptx.jaxp.transform.sax

Class TransformerHandlerImpl

public class TransformerHandlerImpl extends SAXInput implements TransformerHandler

An implemenation of the JAXP TransformerHandler interface

see javax.xml.transform.sax.TransformerHandler for more information

Version: $Revision: 3827 $ $Date: 2003-09-09 00:40:54 -0400 (Tue, 09 Sep 2003) $

Author: Keith Visco

Constructor Summary
TransformerHandlerImpl()
Creates a new TransformerHandlerImpl
TransformerHandlerImpl(XSLTStylesheet stylesheet)
Creates a new TransformerHandlerImpl with the given XSLTStylesheet to use during the transformation.
Method Summary
StringgetSystemId()
Get the base ID (URI or system ID) from where relative URLs will be resolved.
TransformergetTransformer()
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)
voidsetResult(Result result)
Enables 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)

Constructor Detail

TransformerHandlerImpl

public TransformerHandlerImpl()
Creates a new TransformerHandlerImpl

TransformerHandlerImpl

public TransformerHandlerImpl(XSLTStylesheet stylesheet)
Creates a new TransformerHandlerImpl with the given XSLTStylesheet to use during the transformation.

Parameters: stylesheet the XSLTStylesheet to use during the transformation

Method Detail

getSystemId

public String getSystemId()
Get the base ID (URI or system ID) from where relative URLs will be resolved.

Returns: The systemID that was set with TransformerHandlerImpl.

getTransformer

public Transformer getTransformer()
Get the Transformer associated with this handler, which is needed in order to set parameters and output properties.

notationDecl

public void notationDecl(String name, String publicId, String systemId)

setResult

public void setResult(Result result)
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!

Parameters: result A Result instance, should not be null.

Throws: IllegalArgumentException if result is invalid for some reason.

setSystemId

public void setSystemId(String systemID)
Set the base ID (URI or system ID) from where relative URLs will be resolved.

Parameters: systemID Base URI for the source tree.

unparsedEntityDecl

public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName)