public abstract class TCDLEngine extends Object implements TCDLTagsProcessor, com.tridion.configuration.Configurable
| Modifier | Constructor and Description |
|---|---|
protected |
TCDLEngine(TCDLMode mode)
Creates a new TCDLEngine in a certain mode.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(com.tridion.configuration.Configuration configuration)
Configures the environment for running the TCDL engine.
|
protected TransformContext |
createTransformContext(Map<String,String> variables)
Creates a new transform context.
|
protected DocumentBuilder |
getDocumentBuilder() |
protected TagHandlerRegistry |
getTagHandlerRegistry()
Currently for each transformation the registry is re-initialized.
|
boolean |
isLanguageOverridden()
Returns true if the output language is set from config.
|
void |
setCodeBlockMarkers(String startMarker,
String endMarker)
Programmatically set the code block markers.
|
void |
setProperty(String key,
String value)
Programmatically set a TransformContent property.
|
void |
setTargetLanguage(int languageId)
Sets the target language for the transformation, but only if a language was not set via configuration
properties (so configuration can provide an override).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessprotected TCDLEngine(TCDLMode mode)
mode - The mode in which this TCDLEngine is.protected DocumentBuilder getDocumentBuilder()
public void configure(com.tridion.configuration.Configuration configuration)
throws com.tridion.configuration.ConfigurationException
configure in interface com.tridion.configuration.Configurableconfiguration - The configuration object from which to read any possible customizations regarding
the document builder, the contextProperties, the tags or the start/end markers.com.tridion.configuration.ConfigurationException - If something went wrong while trying to retrieve values for.public void setCodeBlockMarkers(String startMarker, String endMarker)
startMarker - marker to use for starting a code blockendMarker - marker to use to end a code blockpublic void setProperty(String key, String value)
key - name of the property to set.value - the property value.public boolean isLanguageOverridden()
public void setTargetLanguage(int languageId)
setTargetLanguage in interface TCDLTagsProcessorlanguageId - The id of the target language to be set for this transformation.Constants}.protected TagHandlerRegistry getTagHandlerRegistry()
protected TransformContext createTransformContext(Map<String,String> variables)
variables - The variables to use during rendering or transformationsCopyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries