org.exolab.adaptx.jaxp.transform.sax

Class TemplatesHandlerImpl

public class TemplatesHandlerImpl extends StylesheetHandler implements TemplatesHandler

An implemenation of the JAXP TemplatesHandler interface

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

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

Author: Keith Visco

Constructor Summary
TemplatesHandlerImpl()
Creates a new TemplatesHandlerImpl
Method Summary
StringgetSystemId()
Get the base ID (URI or system ID) from where relative URLs will be resolved.
TemplatesgetTemplates()
When a TemplatesHandler object is used as a ContentHandler or DocumentHandler for the parsing of transformation instructions, it creates a Templates object, which the caller can get once the SAX events have been completed.
voidsetSystemId(String systemId)
Set the base ID (URI or system ID) for the Templates object created by this builder.

Constructor Detail

TemplatesHandlerImpl

public TemplatesHandlerImpl()
Creates a new TemplatesHandlerImpl

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 TemplatesHandlerImpl.

getTemplates

public Templates getTemplates()
When a TemplatesHandler object is used as a ContentHandler or DocumentHandler for the parsing of transformation instructions, it creates a Templates object, which the caller can get once the SAX events have been completed.

Returns: The Templates object that was created during the SAX event process, or null if no Templates object has been created.

setSystemId

public void setSystemId(String systemId)
Set the base ID (URI or system ID) for the Templates object created by this builder. This must be set in order to resolve relative URIs in the stylesheet. This must be called before the startDocument event.

Parameters: baseID Base URI for this stylesheet.