public final class TemplatesImpl extends Object implements Templates, Serializable
Modifier | Constructor and Description |
---|---|
|
TemplatesImpl()
Need for de-serialization, see readObject().
|
protected |
TemplatesImpl(byte[][] bytecodes,
String transletName,
Properties outputProperties,
int indentNumber,
TransformerFactoryImpl tfactory)
Create an XSLTC template object from the bytecodes.
|
protected |
TemplatesImpl(Class[] transletClasses,
String transletName,
Properties outputProperties,
int indentNumber,
TransformerFactoryImpl tfactory)
Create an XSLTC template object from the translet class definition(s).
|
Modifier and Type | Method and Description |
---|---|
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
|
protected String |
getTransletName()
Returns the name of the main translet class stored in this template
|
Transformer |
newTransformer()
Implements JAXP's Templates.newTransformer()
|
void |
setStylesheetDOM(DOM sdom)
Set the thread local copy of the stylesheet DOM.
|
protected void |
setTransletBytecodes(byte[][] bytecodes)
The TransformerFactory must pass us the translet bytecodes using this
method before we can create any translet instances
|
protected void |
setTransletName(String name)
The TransformerFactory should call this method to set the translet name
|
void |
setURIResolver(URIResolver resolver)
Store URIResolver needed for Transformers.
|
protected TemplatesImpl(byte[][] bytecodes, String transletName, Properties outputProperties, int indentNumber, TransformerFactoryImpl tfactory)
protected TemplatesImpl(Class[] transletClasses, String transletName, Properties outputProperties, int indentNumber, TransformerFactoryImpl tfactory)
public TemplatesImpl()
public void setURIResolver(URIResolver resolver)
protected void setTransletBytecodes(byte[][] bytecodes)
public byte[][] getTransletBytecodes()
public Class[] getTransletClasses()
public int getTransletIndex()
protected void setTransletName(String name)
protected String getTransletName()
public Transformer newTransformer() throws TransformerConfigurationException
newTransformer
in interface Templates
TransformerConfigurationException
public Properties getOutputProperties()
getOutputProperties
in interface Templates
public DOM getStylesheetDOM()
public void setStylesheetDOM(DOM sdom)
Copyright © 2018 JBoss by Red Hat. All rights reserved.