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 theRequiresFormat
annotation on theMacro
class. 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 boolean
shouldTransform(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:MacroBodyTransformationCondition
Returns true if the macro body should be transformed, false otherwise.- Specified by:
shouldTransform
in interfaceMacroBodyTransformationCondition
- Parameters:
macroName
- macro name
-
-