org.xwiki.rendering.transformation
| 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.
|
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 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 TransformationContext clone()
Copyright © 2004-2013 XWiki. All Rights Reserved.