Class EditorBodilessMacroMarshaller
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.editor.macro.EditorBodilessMacroMarshaller
-
- All Implemented Interfaces:
MacroMarshaller
public class EditorBodilessMacroMarshaller extends Object implements MacroMarshaller
Marshal macros that don't have a body to editor format.
-
-
Field Summary
Fields Modifier and Type Field Description protected CommonMacroAttributeWritercommonAttributeWriterprotected PlaceholderUrlFactoryplaceholderUrlFactoryprotected XMLOutputFactoryxmlOutputFactory
-
Constructor Summary
Constructors Constructor Description EditorBodilessMacroMarshaller(CommonMacroAttributeWriter commonAttributeWriter, PlaceholderUrlFactory placeholderUrlFactory, XMLOutputFactory xmlOutputFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetCssClass(MacroDefinition definition)protected StringgetImageSource(MacroDefinition definition)booleanhandles(Macro macro)Streamablemarshal(Macro macro, MacroDefinition macroDefinition, ConversionContext conversionContext)Marshall the supplied macro.
-
-
-
Field Detail
-
commonAttributeWriter
protected final CommonMacroAttributeWriter commonAttributeWriter
-
placeholderUrlFactory
protected final PlaceholderUrlFactory placeholderUrlFactory
-
xmlOutputFactory
protected final XMLOutputFactory xmlOutputFactory
-
-
Constructor Detail
-
EditorBodilessMacroMarshaller
public EditorBodilessMacroMarshaller(CommonMacroAttributeWriter commonAttributeWriter, PlaceholderUrlFactory placeholderUrlFactory, XMLOutputFactory xmlOutputFactory)
-
-
Method Detail
-
handles
public boolean handles(Macro macro)
- Specified by:
handlesin 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:MacroMarshallerMarshall the supplied macro.- Specified by:
marshalin 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)
-
-