com.atlassian.confluence.content.render.xhtml.editor.macro
Class EditorBodyMacroMarshaller
java.lang.Object
com.atlassian.confluence.content.render.xhtml.editor.macro.EditorBodyMacroMarshaller
- All Implemented Interfaces:
- MacroMarshaller
public class EditorBodyMacroMarshaller
- extends java.lang.Object
- implements MacroMarshaller
Marshal macros that have a body to editor format
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EditorBodyMacroMarshaller
public EditorBodyMacroMarshaller(CommonMacroAttributeWriter commonAttributeWriter,
PlaceholderUrlFactory placeholderUrlFactory,
javax.xml.stream.XMLOutputFactory xmlOutputFactory)
handles
public boolean handles(Macro macro)
- Specified by:
handles
in interface MacroMarshaller
- 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:
MacroMarshaller
- Marshall the supplied macro.
- Specified by:
marshal
in interface MacroMarshaller
- 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
getCssClass
protected java.lang.String getCssClass(MacroDefinition definition)
Copyright © 2003-2014 Atlassian. All Rights Reserved.