public class MacroTransformationContext extends Object implements Cloneable
Constructor and Description |
---|
MacroTransformationContext()
Constructor.
|
MacroTransformationContext(TransformationContext transformationContext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
MacroTransformationContext |
clone() |
MacroBlock |
getCurrentMacroBlock() |
String |
getId() |
Syntax |
getSyntax() |
Transformation |
getTransformation() |
TransformationContext |
getTransformationContext() |
XDOM |
getXDOM() |
boolean |
isInline() |
void |
setCurrentMacroBlock(MacroBlock currentMacroBlock) |
void |
setId(String id) |
void |
setInline(boolean inline) |
void |
setSyntax(Syntax syntax) |
void |
setTransformation(Transformation transformation) |
void |
setXDOM(XDOM xdom) |
public MacroTransformationContext()
public MacroTransformationContext(TransformationContext transformationContext)
transformationContext
- the context of the transformation process.public TransformationContext getTransformationContext()
public void setCurrentMacroBlock(MacroBlock currentMacroBlock)
currentMacroBlock
- the macro currently being processed.public MacroBlock getCurrentMacroBlock()
public void setXDOM(XDOM xdom)
xdom
- the complete XDOM
of the page currently being transformed.public void setInline(boolean inline)
inline
- if true then the macro is called in inline modepublic boolean isInline()
public void setTransformation(Transformation transformation)
transformation
- the Transformation being usedgetTransformation()
public Transformation getTransformation()
public void setSyntax(Syntax syntax)
syntax
- the current syntax.public Syntax getSyntax()
public String getId()
public MacroTransformationContext clone()
Copyright © 2004–2022 XWiki. All rights reserved.