Class DefaultStorageMacroBodyParser
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.storage.macro.DefaultStorageMacroBodyParser
-
- All Implemented Interfaces:
StorageMacroBodyParser
public class DefaultStorageMacroBodyParser extends Object implements StorageMacroBodyParser
-
-
Constructor Summary
Constructors Constructor Description DefaultStorageMacroBodyParser(MacroBodyTransformationCondition condition, TableStyleRemovingElementTransformer tableStyleRemovingElementTransformer, XmlOutputFactory xmlOutputFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MacroBody
getMacroBody(String macroName, XMLEventReader bodyReader, ConversionContext context, FragmentTransformer transformer)
Extract the MacroBody from the current position in the XMLEventReader.
-
-
-
Constructor Detail
-
DefaultStorageMacroBodyParser
public DefaultStorageMacroBodyParser(MacroBodyTransformationCondition condition, TableStyleRemovingElementTransformer tableStyleRemovingElementTransformer, XmlOutputFactory xmlOutputFactory)
-
-
Method Detail
-
getMacroBody
public MacroBody getMacroBody(String macroName, XMLEventReader bodyReader, ConversionContext context, FragmentTransformer transformer) throws XMLStreamException, XhtmlException
Description copied from interface:StorageMacroBodyParser
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.
- Specified by:
getMacroBody
in interfaceStorageMacroBodyParser
- Parameters:
macroName
- the name of the macro being parsedbodyReader
- the xml event reader at the position of the macro being parsedcontext
- the conversion contexttransformer
- the transformer that will be used to transform the xml events, may be null- Returns:
- Throws:
XMLStreamException
XhtmlException
-
-