com.atlassian.confluence.content.render.xhtml.editor.macro
Interface MacroMarshaller
- All Known Implementing Classes:
- CustomImageEditorMacroMarshaller, CustomPlaceholderEditorMarshaller, EditorBodilessMacroMarshaller, EditorBodyMacroMarshaller, EditorUnknownMacroMarshaller
public interface MacroMarshaller
Implemented by a MacroMarshaller that handles a particular type of Macro.
- Since:
- 4.0
handles
boolean handles(Macro macro)
- Parameters:
macro
- the macro to check. This may be null.
- Returns:
- true if the MacroMarshaller can handle this macro.
marshal
Streamable marshal(Macro macro,
MacroDefinition macroDefinition,
ConversionContext conversionContext)
throws XhtmlException
- Marshall the supplied macro.
- 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
Copyright © 2003-2013 Atlassian. All Rights Reserved.