public class

EditorLinkBodyUnmarshaller

extends Object
implements Unmarshaller<T>
java.lang.Object
   ↳ com.atlassian.confluence.content.render.xhtml.editor.link.EditorLinkBodyUnmarshaller

Class Overview

Unmarshal the body of a link

Summary

Public Constructors
EditorLinkBodyUnmarshaller(Unmarshaller<EmbeddedImage> embeddedImageUnmarshaller, XMLOutputFactory xmlFragmentOutputFactory, XmlEventReaderFactory xmlEventReaderFactory, XmlEntityExpander xmlEntityExpander)
Public Methods
boolean handles(StartElement startElementEvent, ConversionContext conversionContext)
This unmarshaller needs to be applied intelligently on a reader with the actual body of a link.
LinkBody unmarshal(XMLEventReader linkFragmentReader, FragmentTransformer mainFragmentTransformer, ConversionContext conversionContext)
Unmarshalls a StAX event stream to an object.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.content.render.xhtml.Unmarshaller

Public Constructors

public EditorLinkBodyUnmarshaller (Unmarshaller<EmbeddedImage> embeddedImageUnmarshaller, XMLOutputFactory xmlFragmentOutputFactory, XmlEventReaderFactory xmlEventReaderFactory, XmlEntityExpander xmlEntityExpander)

Public Methods

public boolean handles (StartElement startElementEvent, ConversionContext conversionContext)

This unmarshaller needs to be applied intelligently on a reader with the actual body of a link. At this stage, there is no requirement for it to be added to a list of unmarshallers. Therefore, no proper handles implementation is required.

Parameters
startElementEvent start element
conversionContext the conversion context
Returns
  • true if this unmarshaller can be applied, false otherwise

public LinkBody unmarshal (XMLEventReader linkFragmentReader, FragmentTransformer mainFragmentTransformer, ConversionContext conversionContext)

Unmarshalls a StAX event stream to an object.

Parameters
linkFragmentReader a reader over the fragment to unmarshall
mainFragmentTransformer TODO
conversionContext the conversion context
Returns
  • the unmarshalled object