Class ViewHeadingFragmentTransformer
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.transformers.LegacyFragmentTransformer
-
- com.atlassian.confluence.content.render.xhtml.view.ViewHeadingFragmentTransformer
-
- All Implemented Interfaces:
FragmentTransformer
public class ViewHeadingFragmentTransformer extends LegacyFragmentTransformer implements FragmentTransformer
Transforms headings ({@code..
) tags in the storage format into the view format which ads an id to the tag so that it may be used in Table of contents or other references.
-
-
Constructor Summary
Constructors Constructor Description ViewHeadingFragmentTransformer(XmlEventReaderFactory xmlEventReaderFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
handles(StartElement startElementEvent, ConversionContext conversionContext)
String
transformToString(XMLEventReader reader, FragmentTransformer mainFragmentTransformer, ConversionContext conversionContext)
-
Methods inherited from class com.atlassian.confluence.content.render.xhtml.transformers.LegacyFragmentTransformer
transform
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.content.render.xhtml.transformers.FragmentTransformer
transform
-
-
-
-
Constructor Detail
-
ViewHeadingFragmentTransformer
public ViewHeadingFragmentTransformer(XmlEventReaderFactory xmlEventReaderFactory)
-
-
Method Detail
-
handles
public boolean handles(StartElement startElementEvent, ConversionContext conversionContext)
- Specified by:
handles
in interfaceFragmentTransformer
-
transformToString
public String transformToString(XMLEventReader reader, FragmentTransformer mainFragmentTransformer, ConversionContext conversionContext) throws XhtmlException
- Specified by:
transformToString
in classLegacyFragmentTransformer
- Throws:
XhtmlException
-
-