com.jclark.xsl.trax

Class TransformerImpl

class TransformerImpl extends Transformer

An implementation of the TrAX Transformer class. Can transform a source tree into a result tree
Constructor Summary
TransformerImpl(Sheet sheet, Engine engine, TransformerFactoryImpl factory)
Create a TransformerImpl.
Method Summary
voidclearParameters()
Clear all parameters set with setParameter.
ErrorListenergetErrorListener()
Get the error event handler in effect for the transformation.
PropertiesgetOutputProperties()
StringgetOutputProperty(String name)
Return null.
ObjectgetParameter(String name)
Get a parameter that was explicitly set with setParameter or setParameters.
URIResolvergetURIResolver()
Get an object that will be used to resolve URIs used in document(), etc.
protected XSLProcessorImplinit(Result result)
voidsetErrorListener(ErrorListener listener)
Set the error event listener in effect for the transformation.
voidsetOutputProperties(Properties oformat)
Set the output properties for the transformation.
voidsetOutputProperty(String name, String value)
Set an output property that will be in effect for the transformation.
voidsetParameter(String name, Object value)
Add a parameter for the transformation.
voidsetURIResolver(URIResolver resolver)
Set an object that will be used to resolve URIs used in document().
voidtransform(Source source, Result result)
Process the source tree to the output result.

Constructor Detail

TransformerImpl

public TransformerImpl(Sheet sheet, Engine engine, TransformerFactoryImpl factory)
Create a TransformerImpl.

Method Detail

clearParameters

public void clearParameters()
Clear all parameters set with setParameter.

getErrorListener

public ErrorListener getErrorListener()
Get the error event handler in effect for the transformation.

Returns: The current error handler, which should never be null.

getOutputProperties

public Properties getOutputProperties()

getOutputProperty

public String getOutputProperty(String name)
Return null. See comment for getOutputProperties().

getParameter

public Object getParameter(String name)
Get a parameter that was explicitly set with setParameter or setParameters.

getURIResolver

public URIResolver getURIResolver()
Get an object that will be used to resolve URIs used in document(), etc.

init

protected XSLProcessorImpl init(Result result)

setErrorListener

public void setErrorListener(ErrorListener listener)
Set the error event listener in effect for the transformation.

setOutputProperties

public void setOutputProperties(Properties oformat)
Set the output properties for the transformation. These properties will override properties set in the Templates with xsl:output.

setOutputProperty

public void setOutputProperty(String name, String value)
Set an output property that will be in effect for the transformation.

setParameter

public void setParameter(String name, Object value)
Add a parameter for the transformation.

setURIResolver

public void setURIResolver(URIResolver resolver)
Set an object that will be used to resolve URIs used in document().

transform

public void transform(Source source, Result result)
Process the source tree to the output result.