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

Method Summary
 boolean handles(Macro macro)
           
 String marshal(Macro macro, MacroDefinition macroDefinition, ConversionContext conversionContext)
          Marshall the supplied macro.
 

Method Detail

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

String 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-2011 Atlassian. All Rights Reserved.