Class Html5VoidElementFragmentTransformer
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.transformers.Html5VoidElementFragmentTransformer
-
- All Implemented Interfaces:
FragmentTransformer
public class Html5VoidElementFragmentTransformer extends Object implements FragmentTransformer
Takes xhtml fragments for void elements (either as empty elements or as a matching pair of elements) and returns it as a single self closing tag (as required by the HTML 5 spec).
-
-
Constructor Summary
Constructors Constructor Description Html5VoidElementFragmentTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
handles(StartElement startElementEvent, ConversionContext conversionContext)
Streamable
transform(XMLEventReader reader, FragmentTransformer mainFragmentTransformer, ConversionContext conversionContext)
-
-
-
Method Detail
-
handles
public boolean handles(StartElement startElementEvent, ConversionContext conversionContext)
- Specified by:
handles
in interfaceFragmentTransformer
-
transform
public Streamable transform(XMLEventReader reader, FragmentTransformer mainFragmentTransformer, ConversionContext conversionContext) throws XhtmlException
- Specified by:
transform
in interfaceFragmentTransformer
- Throws:
XhtmlException
-
-