public class

EditorBodilessMacroMarshaller

extends Object
implements MacroMarshaller
java.lang.Object
   ↳ com.atlassian.confluence.content.render.xhtml.editor.macro.EditorBodilessMacroMarshaller
Known Direct Subclasses

Class Overview

Marshal macros that don't have a body to editor format.

Summary

Fields
protected final CommonMacroAttributeWriter commonAttributeWriter
protected final PlaceholderUrlFactory placeholderUrlFactory
protected final XMLOutputFactory xmlOutputFactory
Public Constructors
EditorBodilessMacroMarshaller(CommonMacroAttributeWriter commonAttributeWriter, PlaceholderUrlFactory placeholderUrlFactory, XMLOutputFactory xmlOutputFactory)
Public Methods
boolean handles(Macro macro)
String marshal(Macro macro, MacroDefinition macroDefinition, ConversionContext conversionContext)
Marshall the supplied macro.@return
Protected Methods
String getCssClass(MacroDefinition definition)
String getImageSource(MacroDefinition definition)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.content.render.xhtml.editor.macro.MacroMarshaller

Fields

protected final CommonMacroAttributeWriter commonAttributeWriter

protected final PlaceholderUrlFactory placeholderUrlFactory

protected final XMLOutputFactory xmlOutputFactory

Public Constructors

public EditorBodilessMacroMarshaller (CommonMacroAttributeWriter commonAttributeWriter, PlaceholderUrlFactory placeholderUrlFactory, XMLOutputFactory xmlOutputFactory)

Public Methods

public boolean handles (Macro macro)

public String marshal (Macro macro, MacroDefinition macroDefinition, ConversionContext conversionContext)

Marshall the supplied macro.@return

Parameters
macro the macro to be marshalled. It may be null, such as in the case where a Macro has not been identified by the system.

Protected Methods

protected String getCssClass (MacroDefinition definition)

protected String getImageSource (MacroDefinition definition)