com.atlassian.confluence.content.render.xhtml.storage.macro
Interface StorageMacroBodyParser

All Known Implementing Classes:
DefaultStorageMacroBodyParser

public interface StorageMacroBodyParser

An interface to logic that parses macro data, extracting the correct form of the body.


Method Summary
 MacroBody getMacroBody(String macroName, XMLEventReader bodyReader, ConversionContext context, FragmentTransformer transformer)
          Extract the MacroBody from the current position in the XMLEventReader.
 

Method Detail

getMacroBody

MacroBody getMacroBody(String macroName,
                       XMLEventReader bodyReader,
                       ConversionContext context,
                       FragmentTransformer transformer)
                       throws XMLStreamException,
                              XhtmlException
Extract the MacroBody from the current position in the XMLEventReader. If not null, the transformer will be used to transform the XML Events in to another format.

Parameters:
macroName - the name of the macro being parsed
bodyReader - the xml event reader at the position of the macro being parsed
context - the conversion context
transformer - the transformer that will be used to transform the xml events, may be null
Returns:
Throws:
XMLStreamException
XhtmlException


Copyright © 2003–2015 Atlassian. All rights reserved.