Class DiffMacroMarshaller
- java.lang.Object
-
- com.atlassian.confluence.diff.marshallers.DiffMacroMarshaller
-
- All Implemented Interfaces:
Marshaller<MacroDefinition>
public class DiffMacroMarshaller extends Object implements Marshaller<MacroDefinition>
-
-
Field Summary
Fields Modifier and Type Field Description static StringBODYLESS_MACRO_CLASSstatic StringMACRO_CLASS
-
Constructor Summary
Constructors Constructor Description DiffMacroMarshaller(MacroManager macroManager, XMLOutputFactory xmlOutputFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Streamablemarshal(MacroDefinition macroDefinition, ConversionContext conversionContext)Marshals an object to XML.
-
-
-
Field Detail
-
MACRO_CLASS
public static final String MACRO_CLASS
- See Also:
- Constant Field Values
-
BODYLESS_MACRO_CLASS
public static final String BODYLESS_MACRO_CLASS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DiffMacroMarshaller
public DiffMacroMarshaller(MacroManager macroManager, XMLOutputFactory xmlOutputFactory)
-
-
Method Detail
-
marshal
public Streamable marshal(MacroDefinition macroDefinition, ConversionContext conversionContext) throws XhtmlException
Description copied from interface:MarshallerMarshals an object to XML.- Specified by:
marshalin interfaceMarshaller<MacroDefinition>- Parameters:
macroDefinition- object to marshalconversionContext- the conversion context- Returns:
- the XML representation of the object
- Throws:
XhtmlException- if an error occurs during marshalling
-
-