public class ExcerptMacro extends Object implements Macro
Other macros that include the excerpt (such as the excerpt-include) will need to be render it with the correct context so that things like links, images etc.. are rendered and displayed correctly.
Macro.BodyType, Macro.OutputType| Modifier and Type | Field and Description |
|---|---|
protected static Pattern |
stripPattern |
| Constructor and Description |
|---|
ExcerptMacro() |
| 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() |
protected static Pattern stripPattern
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–2016 Atlassian. All rights reserved.