public class V2CompatibilityMacro extends Object implements Macro
bodyType attribute in the <macro>. This is
 ignored in pre 4.0 systems.Macro.BodyType, Macro.OutputType| Constructor and Description | 
|---|
| V2CompatibilityMacro(com.atlassian.renderer.v2.macro.Macro v2Macro,
                    Macro.BodyType bodyType) | 
| Modifier and Type | Method and Description | 
|---|---|
| String | execute(Map<String,String> parameters,
       String body,
       ConversionContext conversionContext) | 
| Macro.BodyType | getBodyType()The type of body that this macro has, this is used to infer the migration task if no custom one is provided. | 
| Macro.OutputType | getOutputType() | 
public V2CompatibilityMacro(com.atlassian.renderer.v2.macro.Macro v2Macro,
                            Macro.BodyType bodyType)
public String execute(Map<String,String> parameters, String body, ConversionContext conversionContext) throws MacroExecutionException
execute in interface MacroMacroExecutionExceptionpublic Macro.BodyType getBodyType()
MacrogetBodyType in interface Macropublic Macro.OutputType getOutputType()
getOutputType in interface MacroCopyright © 2003–2020 Atlassian. All rights reserved.