public class WikiContentRendererHandler extends Object implements WikiContentHandler
| Constructor and Description |
|---|
WikiContentRendererHandler(MacroRendererComponent macroRendererComponent,
RenderContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleMacro(StringBuffer buffer,
MacroTag macroTag,
String body)
Handle macro and output the result into the passed buffer.
|
void |
handleText(StringBuffer buffer,
String s)
Handle text, i.e.
|
public WikiContentRendererHandler(MacroRendererComponent macroRendererComponent, RenderContext context)
public void handleMacro(StringBuffer buffer, MacroTag macroTag, String body)
WikiContentHandler
Note that nested macros will NOT be handled separately, only the outer ones will be passed to this method.
Implementation will need to handle inner macros that might be present inside the body.
handleMacro in interface WikiContentHandlerbuffer - the buffer to output the resultmacroTag - a macro descriptor for the macro to be handled. Should have MacroTag.getEndTag()
set if there is a body.body - text between the start and end tagspublic void handleText(StringBuffer buffer, String s)
WikiContentHandlerhandleText in interface WikiContentHandlerCopyright © 2019 Atlassian. All rights reserved.