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 Macro
MacroExecutionException
public Macro.BodyType getBodyType()
Macro
getBodyType
in interface Macro
public Macro.OutputType getOutputType()
getOutputType
in interface Macro
Copyright © 2003–2021 Atlassian. All rights reserved.