public class EditorLinkBodyUnmarshaller extends Object implements Unmarshaller<LinkBody<?>>
Constructor and Description |
---|
EditorLinkBodyUnmarshaller(Unmarshaller<EmbeddedImage> embeddedImageUnmarshaller,
XMLOutputFactory xmlFragmentOutputFactory,
XmlEventReaderFactory xmlEventReaderFactory,
XmlEntityExpander xmlEntityExpander) |
Modifier and Type | Method and Description |
---|---|
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.
|
public EditorLinkBodyUnmarshaller(Unmarshaller<EmbeddedImage> embeddedImageUnmarshaller, XMLOutputFactory xmlFragmentOutputFactory, XmlEventReaderFactory xmlEventReaderFactory, XmlEntityExpander xmlEntityExpander)
public LinkBody unmarshal(XMLEventReader linkFragmentReader, FragmentTransformer mainFragmentTransformer, ConversionContext conversionContext) throws XhtmlException
Unmarshaller
unmarshal
in interface Unmarshaller<LinkBody<?>>
linkFragmentReader
- a reader over the fragment to unmarshallmainFragmentTransformer
- TODOconversionContext
- the conversion contextXhtmlException
- if some other problem occurspublic boolean handles(StartElement startElementEvent, ConversionContext conversionContext)
handles
in interface Unmarshaller<LinkBody<?>>
startElementEvent
- start elementconversionContext
- the conversion contextCopyright © 2003–2020 Atlassian. All rights reserved.