com.atlassian.confluence.content.render.xhtml.migration
Interface MacroReplacementRenderer

All Known Implementing Classes:
ColorMacroReplacementRenderer, ColumnMacroReplacementRenderer, NolinkMacroReplacementRenderer, QuoteMacroReplacementRenderer, SectionMacroReplacementRenderer

public interface MacroReplacementRenderer

Generates a rendering that is to replace or override the default rendering of a macro to XHTML storage format. This interface is needed since some macros do not need to be represented as macros in XHTML (they have specific or better markup in XHTML). E.g. {section} and {column} are better represented as a table


Method Summary
 Set<String> getHandledClasses()
           
 String render(MacroDefinition macro, com.atlassian.renderer.RenderContext renderContext)
           
 

Method Detail

getHandledClasses

Set<String> getHandledClasses()
Returns:
a Set of class names (as Strings) of v2 Macro implementations that this MacroReplacementRenderer applies to.

render

String render(MacroDefinition macro,
              com.atlassian.renderer.RenderContext renderContext)


Copyright © 2003-2011 Atlassian. All Rights Reserved.