Class EditorBodilessMacroMarshaller
java.lang.Object
com.atlassian.confluence.content.render.xhtml.editor.macro.EditorBodilessMacroMarshaller
- All Implemented Interfaces:
MacroMarshaller
Marshal macros that don't have a body to editor format.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CommonMacroAttributeWriterprotected final PlaceholderUrlFactoryprotected final XMLOutputFactory -
Constructor Summary
ConstructorsConstructorDescriptionEditorBodilessMacroMarshaller(CommonMacroAttributeWriter commonAttributeWriter, PlaceholderUrlFactory placeholderUrlFactory, XMLOutputFactory xmlOutputFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetCssClass(MacroDefinition definition) protected StringgetImageSource(MacroDefinition definition) booleanmarshal(Macro macro, MacroDefinition macroDefinition, ConversionContext conversionContext) Marshall the supplied macro.
-
Field Details
-
commonAttributeWriter
-
placeholderUrlFactory
-
xmlOutputFactory
-
-
Constructor Details
-
EditorBodilessMacroMarshaller
public EditorBodilessMacroMarshaller(CommonMacroAttributeWriter commonAttributeWriter, PlaceholderUrlFactory placeholderUrlFactory, XMLOutputFactory xmlOutputFactory)
-
-
Method Details
-
handles
- 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.macroDefinition-conversionContext-- Returns:
- Throws:
XhtmlException
-
getCssClass
-
getImageSource
-