public class TCDLProcessor extends Object implements com.tridion.configuration.Configurable
Note that this class is using the transformer and renderer configured in the cd_deployer respectively cd_storage configuration file (if are defined in it) or {@link TCDLRenderer) and {@link TCDLTransformer) by default. If you do not care about the (possible) custom configured transformer and renderer from the configuration file you can use directly the {@link TCDLRenderer) or the {@link TCDLTransformer).
| Modifier and Type | Method and Description |
|---|---|
void |
configure(com.tridion.configuration.Configuration tcdlEngineConfiguration) |
static void |
flushInstance() |
static TCDLProcessor |
getInstance() |
void |
process(String itemURI,
String input,
Map<String,String> variablesMap,
Writer target,
TCDLMode mode,
String dcpLanguage)
This method processes an item passed to it.
|
void |
process(String itemURI,
String input,
Map<String,String> variablesMap,
Writer target,
TCDLMode mode,
String dcpLanguage,
GlobalExecutionArguments args)
This method processes an item passed to it.
|
public void configure(com.tridion.configuration.Configuration tcdlEngineConfiguration)
throws com.tridion.configuration.ConfigurationException
configure in interface com.tridion.configuration.Configurablecom.tridion.configuration.ConfigurationExceptionpublic static TCDLProcessor getInstance()
public static void flushInstance()
public void process(String itemURI, String input, Map<String,String> variablesMap, Writer target, TCDLMode mode, String dcpLanguage, GlobalExecutionArguments args) throws ProcessingException
itemURI - uri of the item being transformed.input - TCDL enabled content.variablesMap - Map with variables to replace while parsing TCDL. Note that this is only used when rendering.target - Writer to write output to.args - Additional execution argumentsProcessingException - If the content could not be rendered/transformed.public void process(String itemURI, String input, Map<String,String> variablesMap, Writer target, TCDLMode mode, String dcpLanguage) throws ProcessingException
itemURI - uri of the item being transformed.input - TCDL enabled content.variablesMap - Map with variables to replace while parsing TCDL. Note that this is only used when rendering.target - Writer to write output to.ProcessingException - If the content could not be rendered/transformed.Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries