com.atlassian.confluence.content.render.xhtml.storage.macro
Class AnnotationMacroBodyTranformationCondition

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.storage.macro.AnnotationMacroBodyTranformationCondition
All Implemented Interfaces:
MacroBodyTransformationCondition

public class AnnotationMacroBodyTranformationCondition
extends Object
implements MacroBodyTransformationCondition

Allows macro body transformation based on the RequiresFormat annotation on the Macro class. The default behaviour if no annotation is provided is to do the transformation.

Since:
4.0
See Also:
RequiresFormat, Format, Macro

Constructor Summary
AnnotationMacroBodyTranformationCondition(MacroManager macroManager)
           
 
Method Summary
 boolean shouldTransform(String macroName)
          Returns true if the macro body should be transformed, false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationMacroBodyTranformationCondition

public AnnotationMacroBodyTranformationCondition(MacroManager macroManager)
Method Detail

shouldTransform

public boolean shouldTransform(String macroName)
Description copied from interface: MacroBodyTransformationCondition
Returns true if the macro body should be transformed, false otherwise.

Specified by:
shouldTransform in interface MacroBodyTransformationCondition
Parameters:
macroName - macro name


Copyright © 2003-2012 Atlassian. All Rights Reserved.