Constructor and Description |
---|
TransformationContext()
Default constructor that doesn't set the XDOM or the Syntax.
|
TransformationContext(XDOM xdom,
Syntax syntax)
Some macros require the XDOM and the Syntax to be set.
|
TransformationContext(XDOM xdom,
Syntax syntax,
boolean restricted)
Some macros require the XDOM and the Syntax to be set.
|
Modifier and Type | Method and Description |
---|---|
TransformationContext |
clone() |
String |
getId() |
Syntax |
getSyntax() |
Syntax |
getTargetSyntax() |
XDOM |
getXDOM() |
boolean |
isRestricted() |
void |
setId(String id) |
void |
setRestricted(boolean restricted) |
void |
setSyntax(Syntax syntax) |
void |
setTargetSyntax(Syntax targetSyntax) |
void |
setXDOM(XDOM xdom) |
public TransformationContext()
public TransformationContext(XDOM xdom, Syntax syntax)
xdom
- see setXDOM(org.xwiki.rendering.block.XDOM)
syntax
- see setSyntax(org.xwiki.rendering.syntax.Syntax)
public TransformationContext(XDOM xdom, Syntax syntax, boolean restricted)
xdom
- see setXDOM(org.xwiki.rendering.block.XDOM)
syntax
- see setSyntax(org.xwiki.rendering.syntax.Syntax)
restricted
- disables potentially harmful transformations.public String getId()
public void setXDOM(XDOM xdom)
xdom
- the complete XDOM
of the content currently being transformed.public XDOM getXDOM()
XDOM
of the content currently being transformed.public void setSyntax(Syntax syntax)
syntax
- the current syntax.public Syntax getSyntax()
public boolean isRestricted()
public void setRestricted(boolean restricted)
restricted
- set indicator of whether the transformation context is restricted or not.public Syntax getTargetSyntax()
public void setTargetSyntax(Syntax targetSyntax)
targetSyntax
- the syntax of the rendererpublic TransformationContext clone()
Copyright © 2004–2021 XWiki. All rights reserved.