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 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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldTransform(String macroName) Returns true if the macro body should be transformed, false otherwise.
-
Constructor Details
-
AnnotationMacroBodyTranformationCondition
-
-
Method Details
-
shouldTransform
Description copied from interface:MacroBodyTransformationConditionReturns true if the macro body should be transformed, false otherwise.- Specified by:
shouldTransformin interfaceMacroBodyTransformationCondition- Parameters:
macroName- macro name
-