Class CustomImageEditorMacroMarshaller
- java.lang.Object
 - 
- com.atlassian.confluence.content.render.xhtml.editor.macro.CustomImageEditorMacroMarshaller
 
 
- 
- All Implemented Interfaces:
 MacroMarshaller
public class CustomImageEditorMacroMarshaller extends Object implements MacroMarshaller
Marshal a Macro that implements theEditorImagePlaceholderinterface and therefore displays a custom image in the editor 
- 
- 
Constructor Summary
Constructors Constructor Description CustomImageEditorMacroMarshaller(CommonMacroAttributeWriter commonAttributeWriter, ContextPathHolder contextPathHolder, PlaceholderUrlFactory placeholderUrlFactory, XMLOutputFactory xmlOutputFactory) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhandles(Macro macro)Streamablemarshal(Macro macro, MacroDefinition macroDefinition, ConversionContext conversionContext)Marshall the supplied macro. 
 - 
 
- 
- 
Constructor Detail
- 
CustomImageEditorMacroMarshaller
public CustomImageEditorMacroMarshaller(CommonMacroAttributeWriter commonAttributeWriter, ContextPathHolder contextPathHolder, 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
 
 - 
 
 -