com.atlassian.confluence.content.render.xhtml.migration
Class XhtmlMacroRendererComponent

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.migration.XhtmlMacroRendererComponent
All Implemented Interfaces:
com.atlassian.renderer.v2.components.RendererComponent

public class XhtmlMacroRendererComponent
extends Object
implements com.atlassian.renderer.v2.components.RendererComponent


Field Summary
static String MACRO_DECLARATION_POSITION
          Defines where the position in which the macro is declared in wiki markup.
 
Constructor Summary
XhtmlMacroRendererComponent(com.atlassian.renderer.v2.macro.MacroManager v2MacroManager, MacroMigrationManager macroMigrationManager, Marshaller<MacroDefinition> macroMarshaller, MacroReplacementRendererRepository replacementRepository, MacroDefinitionDeserializer macroDefinitionWikiMarkupDeserializer)
           
 
Method Summary
 String render(String wiki, com.atlassian.renderer.RenderContext context)
           
 boolean shouldRender(com.atlassian.renderer.v2.RenderMode renderMode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MACRO_DECLARATION_POSITION

public static final String MACRO_DECLARATION_POSITION
Defines where the position in which the macro is declared in wiki markup.

If you have "foo {cheese} bar", the macro is declared "inline".

If you have "foo/n{cheese}", the macro is not declared "inline".

See Also:
Constant Field Values
Constructor Detail

XhtmlMacroRendererComponent

public XhtmlMacroRendererComponent(com.atlassian.renderer.v2.macro.MacroManager v2MacroManager,
                                   MacroMigrationManager macroMigrationManager,
                                   Marshaller<MacroDefinition> macroMarshaller,
                                   MacroReplacementRendererRepository replacementRepository,
                                   MacroDefinitionDeserializer macroDefinitionWikiMarkupDeserializer)
Method Detail

shouldRender

public boolean shouldRender(com.atlassian.renderer.v2.RenderMode renderMode)
Specified by:
shouldRender in interface com.atlassian.renderer.v2.components.RendererComponent

render

public String render(String wiki,
                     com.atlassian.renderer.RenderContext context)
Specified by:
render in interface com.atlassian.renderer.v2.components.RendererComponent


Copyright © 2003-2013 Atlassian. All Rights Reserved.