public final class TemplatesImpl extends Object implements Templates, Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
DESERIALIZE_TRANSLET |
| 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.
|
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 |
setTransletName(String name)
The TransformerFactory should call this method to set the translet name
|
void |
setURIResolver(URIResolver resolver)
Store URIResolver needed for Transformers.
|
boolean |
useServicesMechnism()
Return the state of the services mechanism feature.
|
public static final String DESERIALIZE_TRANSLET
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 boolean useServicesMechnism()
public void setURIResolver(URIResolver resolver)
public int getTransletIndex()
protected void setTransletName(String name)
protected String getTransletName()
public Transformer newTransformer() throws TransformerConfigurationException
newTransformer in interface TemplatesTransformerConfigurationExceptionpublic Properties getOutputProperties()
getOutputProperties in interface Templatespublic DOM getStylesheetDOM()
public void setStylesheetDOM(DOM sdom)
Copyright © 2018–2021 mhoffrogge. All rights reserved.