public interface WikiContentHandler
WikiMarkupParser
In future it can be extended to handle more specific situations.
| 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.
|
void handleMacro(StringBuffer buffer, MacroTag macroTag, String body)
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.
buffer - 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 tagsvoid handleText(StringBuffer buffer, String s)
Copyright © 2019 Atlassian. All rights reserved.