Class ViewMacroMarshaller
java.lang.Object
com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshaller
- All Implemented Interfaces:
 Marshaller<MacroDefinition>
- 
Constructor Summary
ConstructorsConstructorDescriptionViewMacroMarshaller(MacroManager macroManager, Marshaller<MacroDefinition> unknownMacroMarshaller, ViewMacroErrorPlaceholder viewMacroErrorPlaceholder, LegacyV2RendererContextInitialiser legacyV2RendererConfigurationPropertySetter, com.atlassian.event.api.EventPublisher eventPublisher, ConfluenceMonitoring monitoring, MacroAsyncRenderWhitelist macroAsyncRenderWhitelist, MacroMetadataManager macroMetadataManager, MacroSchemaMigrator macroSchemaMigrator, ViewMacroWrapper viewMacroWrapper, MacroRenderingMonitor macroRenderingMonitor)  - 
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaddMacroNameToExclusionSet(String macroName) Adds provided macro name to the excluded macros set.marshal(MacroDefinition macroDefinition, ConversionContext conversionContext) Marshals an object to XML. 
- 
Constructor Details
- 
ViewMacroMarshaller
public ViewMacroMarshaller(MacroManager macroManager, Marshaller<MacroDefinition> unknownMacroMarshaller, ViewMacroErrorPlaceholder viewMacroErrorPlaceholder, LegacyV2RendererContextInitialiser legacyV2RendererConfigurationPropertySetter, com.atlassian.event.api.EventPublisher eventPublisher, ConfluenceMonitoring monitoring, MacroAsyncRenderWhitelist macroAsyncRenderWhitelist, MacroMetadataManager macroMetadataManager, MacroSchemaMigrator macroSchemaMigrator, ViewMacroWrapper viewMacroWrapper, MacroRenderingMonitor macroRenderingMonitor) - Since:
 - 5.9
 
 
 - 
 - 
Method Details
- 
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
 - 
addMacroNameToExclusionSet
Adds provided macro name to the excluded macros set. The macro names in this set are ones which are not treated as wrapped elements during the marshalling process.- Parameters:
 macroName- the name of the macro to be added- Returns:
 - true if the macro name was successfully added to the exclusion set, false otherwise.
 - Since:
 - 8.3.0
 
 
 -