com.jclark.xsl.trax
Class TransformerImpl

java.lang.Object
  extended by javax.xml.transform.Transformer
      extended by com.jclark.xsl.trax.TransformerImpl

 class TransformerImpl
extends javax.xml.transform.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
 void clearParameters()
          Clear all parameters set with setParameter.
 javax.xml.transform.ErrorListener getErrorListener()
          Get the error event handler in effect for the transformation.
 java.util.Properties getOutputProperties()
           
 java.lang.String getOutputProperty(java.lang.String name)
          Return null.
 java.lang.Object getParameter(java.lang.String name)
          Get a parameter that was explicitly set with setParameter or setParameters.
 javax.xml.transform.URIResolver getURIResolver()
          Get an object that will be used to resolve URIs used in document(), etc.
protected  XSLProcessorImpl init(javax.xml.transform.Result result)
           
 void setErrorListener(javax.xml.transform.ErrorListener listener)
          Set the error event listener in effect for the transformation.
 void setOutputProperties(java.util.Properties oformat)
          Set the output properties for the transformation.
 void setOutputProperty(java.lang.String name, java.lang.String value)
          Set an output property that will be in effect for the transformation.
 void setParameter(java.lang.String name, java.lang.Object value)
          Add a parameter for the transformation.
 void setURIResolver(javax.xml.transform.URIResolver resolver)
          Set an object that will be used to resolve URIs used in document().
 void transform(javax.xml.transform.Source source, javax.xml.transform.Result result)
          Process the source tree to the output result.
 
Methods inherited from class javax.xml.transform.Transformer
reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformerImpl

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

Method Detail

init

protected XSLProcessorImpl init(javax.xml.transform.Result result)
                         throws javax.xml.transform.TransformerException
Throws:
javax.xml.transform.TransformerException

transform

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

Specified by:
transform in class javax.xml.transform.Transformer
Throws:
javax.xml.transform.TransformerException

clearParameters

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

Specified by:
clearParameters in class javax.xml.transform.Transformer

setParameter

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

Specified by:
setParameter in class javax.xml.transform.Transformer

getParameter

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

Specified by:
getParameter in class javax.xml.transform.Transformer

getURIResolver

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

Specified by:
getURIResolver in class javax.xml.transform.Transformer

setURIResolver

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

Specified by:
setURIResolver in class javax.xml.transform.Transformer

setOutputProperties

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

Specified by:
setOutputProperties in class javax.xml.transform.Transformer
Throws:
java.lang.IllegalArgumentException

getOutputProperties

public java.util.Properties getOutputProperties()
Specified by:
getOutputProperties in class javax.xml.transform.Transformer

setOutputProperty

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

Specified by:
setOutputProperty in class javax.xml.transform.Transformer
Throws:
java.lang.IllegalArgumentException

getOutputProperty

public java.lang.String getOutputProperty(java.lang.String name)
                                   throws java.lang.IllegalArgumentException
Return null. See comment for getOutputProperties().

Specified by:
getOutputProperty in class javax.xml.transform.Transformer
Throws:
java.lang.IllegalArgumentException

setErrorListener

public void setErrorListener(javax.xml.transform.ErrorListener listener)
                      throws java.lang.IllegalArgumentException
Set the error event listener in effect for the transformation.

Specified by:
setErrorListener in class javax.xml.transform.Transformer
Throws:
java.lang.IllegalArgumentException

getErrorListener

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

Specified by:
getErrorListener in class javax.xml.transform.Transformer
Returns:
The current error handler, which should never be null.