Class StorageMacroV2Marshaller
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.storage.macro.StorageMacroV2Marshaller
-
- All Implemented Interfaces:
Marshaller<MacroDefinition>
public class StorageMacroV2Marshaller extends Object implements Marshaller<MacroDefinition>
Marshals aMacroDefinition
into macro v2 storage format.- Since:
- 5.3
-
-
Constructor Summary
Constructors Constructor Description StorageMacroV2Marshaller(XmlOutputFactory xmlOutputFactory, MacroMetadataManager macroMetadataManager, Marshaller<ResourceIdentifier> resourceIdentifierMarshaller, Marshaller<Link> linkMarshaller, MacroParameterTypeParser macroParameterTypeParser, MacroIdSupplier macroIdSupplier, MacroSchemaMigrator macroSchemaMigrator, MacroManager macroManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Streamable
marshal(MacroDefinition originalMacroDefinition, ConversionContext conversionContext)
Marshals an object to XML.
-
-
-
Constructor Detail
-
StorageMacroV2Marshaller
public StorageMacroV2Marshaller(XmlOutputFactory xmlOutputFactory, MacroMetadataManager macroMetadataManager, Marshaller<ResourceIdentifier> resourceIdentifierMarshaller, Marshaller<Link> linkMarshaller, MacroParameterTypeParser macroParameterTypeParser, MacroIdSupplier macroIdSupplier, MacroSchemaMigrator macroSchemaMigrator, MacroManager macroManager)
-
-
Method Detail
-
marshal
public Streamable marshal(MacroDefinition originalMacroDefinition, ConversionContext conversionContext)
Description copied from interface:Marshaller
Marshals an object to XML.- Specified by:
marshal
in interfaceMarshaller<MacroDefinition>
- Parameters:
originalMacroDefinition
- object to marshalconversionContext
- the conversion context- Returns:
- the XML representation of the object
-
-