com.atlassian.renderer.v2.components
Interface WikiContentHandler

All Known Implementing Classes:
WikiContentRendererHandler

public interface WikiContentHandler

This interface is used for handling wiki markup content during the parsing process. It is used in conjunction with WikiMarkupParser In future it can be extended to handle more specific situations.


Method Summary
 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.
 

Method Detail

handleMacro

void handleMacro(StringBuffer buffer,
                 MacroTag macroTag,
                 String body)
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.

Parameters:
buffer - the buffer to output the result
macroTag - 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

void handleText(StringBuffer buffer,
                String s)
Handle text, i.e. anything that is not inside a macro tag. Output the result to the given buffer.



Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.