org.xwiki.rendering.internal.transformation.macro
Class MacroTransformation
java.lang.Object
org.xwiki.rendering.transformation.AbstractTransformation
org.xwiki.rendering.internal.transformation.macro.MacroTransformation
- All Implemented Interfaces:
- Comparable<Transformation>, Transformation
@Component
@Named(value="macro")
@Singleton
public class MacroTransformation
- extends AbstractTransformation
Look for all MacroBlock blocks in the passed Block and iteratively execute
each Macro in the correct order. Macros can:
- provide a hint specifying when they should run (priority)
- generate other Macros
- Since:
- 1.5M2
- Version:
- $Id$
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MacroTransformation
public MacroTransformation()
getPriority
public int getPriority()
-
- Specified by:
getPriority in interface Transformation- Overrides:
getPriority in class AbstractTransformation
- See Also:
AbstractTransformation.getPriority()
transform
public void transform(Block rootBlock,
TransformationContext context)
throws TransformationException
-
- Throws:
TransformationException- See Also:
Transformation.transform(org.xwiki.rendering.block.Block,
org.xwiki.rendering.transformation.TransformationContext)
Copyright © 2004-2011 XWiki. All Rights Reserved.