All Known Implementing Classes:
CustomImageEditorMacroMarshaller, CustomPlaceholderEditorMarshaller, EditorBodilessMacroMarshaller, EditorBodyMacroMarshaller, ImprovedEditorUnknownMacroMarshaller

public interface MacroMarshaller
Implemented by a MacroMarshaller that handles a particular type of Macro.
Since:
4.0
  • Method Details

    • 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