com.atlassian.renderer.v2.components
Class WikiContentRendererHandler
java.lang.Object
com.atlassian.renderer.v2.components.WikiContentRendererHandler
- All Implemented Interfaces:
- WikiContentHandler
public class WikiContentRendererHandler
- extends Object
- implements WikiContentHandler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WikiContentRendererHandler
public WikiContentRendererHandler(MacroRendererComponent macroRendererComponent,
RenderContext context)
handleMacro
public void handleMacro(StringBuffer buffer,
MacroTag macroTag,
String body)
- Description copied from interface:
WikiContentHandler
- Handle macro and output the result into the passed buffer.
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
.
- Specified by:
handleMacro
in interface WikiContentHandler
- Parameters:
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 tags
handleText
public void handleText(StringBuffer buffer,
String s)
- Description copied from interface:
WikiContentHandler
- Handle text, i.e. anything that is not inside a macro tag.
Output the result to the given buffer.
- Specified by:
handleText
in interface WikiContentHandler
Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.