org.apache.xalan.xsltc.trax

Class TemplatesImpl

Implemented Interfaces:
Serializable, Templates

public final class TemplatesImpl
extends Object
implements Templates, Serializable

Authors:
Morten Jorgensen
G. Todd Millerj
Jochen Cordes
Santiago Pericas-Geertsen

Constructor Summary

TemplatesImpl()
Need for de-serialization, see readObject().

Method Summary

Properties
getOutputProperties()
Implements JAXP's Templates.getOutputProperties().
DOM
getStylesheetDOM()
Return the thread local copy of the stylesheet DOM.
byte[][]
getTransletBytecodes()
Returns the translet bytecodes stored in this template
Class[]
getTransletClasses()
Returns the translet bytecodes stored in this template
int
getTransletIndex()
Returns the index of the main class in array of bytecodes
Transformer
newTransformer()
Implements JAXP's Templates.newTransformer()
void
setStylesheetDOM(DOM sdom)
Set the thread local copy of the stylesheet DOM.
void
setURIResolver(URIResolver resolver)
Store URIResolver needed for Transformers.

Constructor Details

TemplatesImpl

public TemplatesImpl()
Need for de-serialization, see readObject().

Method Details

getOutputProperties

public Properties getOutputProperties()
Implements JAXP's Templates.getOutputProperties(). We need to instanciate a translet to get the output settings, so we might as well just instanciate a Transformer and use its implementation of this method.

getStylesheetDOM

public DOM getStylesheetDOM()
Return the thread local copy of the stylesheet DOM.

getTransletBytecodes

public byte[][] getTransletBytecodes()
Returns the translet bytecodes stored in this template

getTransletClasses

public Class[] getTransletClasses()
Returns the translet bytecodes stored in this template

getTransletIndex

public int getTransletIndex()
Returns the index of the main class in array of bytecodes

newTransformer

public Transformer newTransformer()
            throws TransformerConfigurationException
Implements JAXP's Templates.newTransformer()

setStylesheetDOM

public void setStylesheetDOM(DOM sdom)
Set the thread local copy of the stylesheet DOM.

setURIResolver

public void setURIResolver(URIResolver resolver)
Store URIResolver needed for Transformers.

Copyright B) 2004 Apache XML Project. All Rights Reserved.