com.atlassian.confluence.content.render.xhtml.storage.macro
Class DefaultStorageMacroBodyParser

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.storage.macro.DefaultStorageMacroBodyParser
All Implemented Interfaces:
StorageMacroBodyParser

public class DefaultStorageMacroBodyParser
extends java.lang.Object
implements StorageMacroBodyParser


Constructor Summary
DefaultStorageMacroBodyParser(MacroBodyTransformationCondition condition, TableStyleRemovingElementTransformer tableStyleRemovingElementTransformer, XmlOutputFactory xmlOutputFactory)
           
 
Method Summary
 MacroBody getMacroBody(java.lang.String macroName, javax.xml.stream.XMLEventReader bodyReader, ConversionContext context, FragmentTransformer transformer)
          Extract the MacroBody from the current position in the XMLEventReader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultStorageMacroBodyParser

public DefaultStorageMacroBodyParser(MacroBodyTransformationCondition condition,
                                     TableStyleRemovingElementTransformer tableStyleRemovingElementTransformer,
                                     XmlOutputFactory xmlOutputFactory)
Method Detail

getMacroBody

public MacroBody getMacroBody(java.lang.String macroName,
                              javax.xml.stream.XMLEventReader bodyReader,
                              ConversionContext context,
                              FragmentTransformer transformer)
                       throws javax.xml.stream.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 interface StorageMacroBodyParser
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:
javax.xml.stream.XMLStreamException
XhtmlException


Copyright © 2003-2014 Atlassian. All Rights Reserved.