Class EditorBodyMacroMarshaller
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.editor.macro.EditorBodyMacroMarshaller
-
- All Implemented Interfaces:
MacroMarshaller
public class EditorBodyMacroMarshaller extends Object implements MacroMarshaller
Marshal macros that have a body to editor format
-
-
Constructor Summary
Constructors Constructor Description EditorBodyMacroMarshaller(CommonMacroAttributeWriter commonAttributeWriter, PlaceholderUrlFactory placeholderUrlFactory, XMLOutputFactory xmlOutputFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getCssClass(MacroDefinition definition)
protected String
getImageSource(MacroDefinition definition)
boolean
handles(Macro macro)
Streamable
marshal(Macro macro, MacroDefinition macroDefinition, ConversionContext conversionContext)
Marshall the supplied macro.
-
-
-
Constructor Detail
-
EditorBodyMacroMarshaller
public EditorBodyMacroMarshaller(CommonMacroAttributeWriter commonAttributeWriter, PlaceholderUrlFactory placeholderUrlFactory, XMLOutputFactory xmlOutputFactory)
-
-
Method Detail
-
handles
public boolean handles(Macro macro)
- Specified by:
handles
in interfaceMacroMarshaller
- Parameters:
macro
- the macro to check. This may be null.- Returns:
- true if the MacroMarshaller can handle this macro.
-
marshal
public Streamable marshal(Macro macro, MacroDefinition macroDefinition, ConversionContext conversionContext) throws XhtmlException
Description copied from interface:MacroMarshaller
Marshall the supplied macro.- Specified by:
marshal
in interfaceMacroMarshaller
- 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.- Returns:
- Throws:
XhtmlException
-
getCssClass
protected String getCssClass(MacroDefinition definition)
-
getImageSource
protected String getImageSource(MacroDefinition definition)
-
-