Class ViewUnknownMacroMarshaller
java.lang.Object
com.atlassian.confluence.content.render.xhtml.view.macro.ViewUnknownMacroMarshaller
- All Implemented Interfaces:
Marshaller<MacroDefinition>
Display a provided MacroDefinition as an 'unknown macro' (in view).
-
Constructor Summary
ConstructorsConstructorDescriptionViewUnknownMacroMarshaller
(XMLOutputFactory xmlOutputFactory, PlaceholderUrlFactory placeholderUrlFactory) -
Method Summary
Modifier and TypeMethodDescriptionmarshal
(MacroDefinition macroDefinition, ConversionContext conversionContext) Marshals an object to XML.
-
Constructor Details
-
ViewUnknownMacroMarshaller
public ViewUnknownMacroMarshaller(XMLOutputFactory xmlOutputFactory, PlaceholderUrlFactory placeholderUrlFactory)
-
-
Method Details
-
marshal
public Streamable marshal(MacroDefinition macroDefinition, ConversionContext conversionContext) throws XhtmlException Description copied from interface:Marshaller
Marshals an object to XML.- Specified by:
marshal
in 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
-