public class TransformContextFactory extends Object
Note that, if enclosing context is not provided, it utilizes nullContext as a default enclosing context.
| Constructor and Description |
|---|
TransformContextFactory() |
| Modifier and Type | Method and Description |
|---|---|
static TransformContext |
newInstance(String codeBlockStartMarker,
String codeBlockEndMarker)
Instantiates an instance of
TransformContext using the given markers for inline code blocks. |
static TransformContext |
newInstance(String codeBlockStartMarker,
String codeBlockEndMarker,
Map configurationProperties,
Map<String,String> renderParameters)
Instantiates a new instance of
TransformContext using the given markers for inline code blocks and
with the internal
properties set from the configurationProperties |
static TransformContext |
newInstance(String codeBlockStartMarker,
String codeBlockEndMarker,
Map configurationProperties,
Map<String,String> renderParameters,
TransformContext enclosingContext)
Instantiates a new instance of
TransformContext using the given markers for inline code blocks and
with the internal properties set from the configurationProperties. |
static TransformContext |
newInstance(String codeBlockStartMarker,
String codeBlockEndMarker,
TransformContext enclosingContext)
Instantiates an instance of
TransformContext using the given markers for inline code blocks. |
static TransformContext |
newInstance(TransformContext enclosingContext)
Instantiates an instance of
TransformContext using the default markers for inline code blocks. |
public static TransformContext newInstance(String codeBlockStartMarker, String codeBlockEndMarker, Map configurationProperties, Map<String,String> renderParameters, TransformContext enclosingContext)
TransformContext using the given markers for inline code blocks and
with the internal properties set from the configurationProperties.codeBlockStartMarker - marker to start an inline code blockcodeBlockEndMarker - marker to end an inline code blockconfigurationProperties - properties to inheritrenderParameters - the rendering parameters to be used during rendering of contentenclosingContext - enclosing context i.e., context of its enclosing Tag in active tag hierarchy.TransformContextIllegalArgumentException - if enclosingContext is null.public static TransformContext newInstance(String codeBlockStartMarker, String codeBlockEndMarker, TransformContext enclosingContext)
TransformContext using the given markers for inline code blocks.codeBlockStartMarker - marker to start an inline code blockcodeBlockEndMarker - marker to end an inline code blockenclosingContext - enclosing context i.e., context of its enclosing Tag in active tag hierarchy.TransformContextIllegalArgumentException - if enclosingContext is null.public static TransformContext newInstance(TransformContext enclosingContext)
TransformContext using the default markers for inline code blocks.
In addition, it sets enclosingContext as the enclosing context of the newly created content.TransformContextIllegalArgumentException - if enclosingContext is null.public static TransformContext newInstance(String codeBlockStartMarker, String codeBlockEndMarker, Map configurationProperties, Map<String,String> renderParameters)
TransformContext using the given markers for inline code blocks and
with the internal
properties set from the configurationProperties
It, in essence, constructs a global (alternatively, can be denoted as root) TransformContext, which is active during a particular transformation (deployment or runtime) phase.
codeBlockStartMarker - marker to start an inline code blockcodeBlockEndMarker - marker to end an inline code blockconfigurationProperties - properties to inheritrenderParameters - the rendering parameters to be used during rendering of contentTransformContextpublic static TransformContext newInstance(String codeBlockStartMarker, String codeBlockEndMarker)
TransformContext using the given markers for inline code blocks.
It, in essence, constructs a global TransformContext, which is
active during a particular transformation (deployment or runtime) phase.codeBlockStartMarker - marker to start an inline code blockcodeBlockEndMarker - marker to end an inline code blockTransformContextCopyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries