Class AnnotationMacroBodyTranformationCondition
- java.lang.Object
-
- 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 theRequiresFormatannotation on theMacroclass. The default behaviour if no annotation is provided is to do the transformation.- Since:
- 4.0
- See Also:
RequiresFormat,Format,Macro
-
-
Constructor Summary
Constructors Constructor Description AnnotationMacroBodyTranformationCondition(MacroManager macroManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanshouldTransform(String macroName)Returns true if the macro body should be transformed, false otherwise.
-
-
-
Constructor Detail
-
AnnotationMacroBodyTranformationCondition
public AnnotationMacroBodyTranformationCondition(MacroManager macroManager)
-
-
Method Detail
-
shouldTransform
public boolean shouldTransform(String macroName)
Description copied from interface:MacroBodyTransformationConditionReturns true if the macro body should be transformed, false otherwise.- Specified by:
shouldTransformin interfaceMacroBodyTransformationCondition- Parameters:
macroName- macro name
-
-