public class EditorBodilessMacroMarshaller extends Object implements MacroMarshaller
Modifier and Type | Field and Description |
---|---|
protected CommonMacroAttributeWriter |
commonAttributeWriter |
protected PlaceholderUrlFactory |
placeholderUrlFactory |
protected XMLOutputFactory |
xmlOutputFactory |
Constructor and Description |
---|
EditorBodilessMacroMarshaller(CommonMacroAttributeWriter commonAttributeWriter,
PlaceholderUrlFactory placeholderUrlFactory,
XMLOutputFactory xmlOutputFactory) |
Modifier and Type | Method and Description |
---|---|
protected String |
getCssClass(MacroDefinition definition) |
protected String |
getImageSource(MacroDefinition definition) |
boolean |
handles(Macro macro) |
Streamable |
marshal(Macro macro,
MacroDefinition macroDefinition,
ConversionContext conversionContext)
Marshall the supplied macro.
|
protected final CommonMacroAttributeWriter commonAttributeWriter
protected final PlaceholderUrlFactory placeholderUrlFactory
protected final XMLOutputFactory xmlOutputFactory
public EditorBodilessMacroMarshaller(CommonMacroAttributeWriter commonAttributeWriter, PlaceholderUrlFactory placeholderUrlFactory, XMLOutputFactory xmlOutputFactory)
public boolean handles(Macro macro)
handles
in interface MacroMarshaller
macro
- the macro to check. This may be null.public Streamable marshal(Macro macro, MacroDefinition macroDefinition, ConversionContext conversionContext) throws XhtmlException
MacroMarshaller
marshal
in interface MacroMarshaller
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.XhtmlException
protected String getCssClass(MacroDefinition definition)
protected String getImageSource(MacroDefinition definition)
Copyright © 2003–2015 Atlassian. All rights reserved.