org.xwiki.rendering.internal.transformation.macro
Class MacroTransformation

java.lang.Object
  extended by org.xwiki.rendering.transformation.AbstractTransformation
      extended by 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:

Since:
1.5M2
Version:
$Id$

Constructor Summary
MacroTransformation()
           
 
Method Summary
 int getPriority()
          
 void transform(Block rootBlock, TransformationContext context)
          
 
Methods inherited from class org.xwiki.rendering.transformation.AbstractTransformation
compareTo, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MacroTransformation

public MacroTransformation()
Method Detail

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.