public class StorageLinkBodyMarshaller extends Object implements Marshaller<LinkBody<?>>
RichTextLinkBody instances are assumed to already be XHTML formatted and are written unchanged.
PlainTextLinkBody instances are HTMLencoded before being written.
EmbeddedImageLinkBody instances will be delegated to the configured embeddedImageMarshaller for writing.
Constructor and Description |
---|
StorageLinkBodyMarshaller(Marshaller<EmbeddedImage> embeddedImageMarshaller,
XmlStreamWriterTemplate xmlStreamWriterTemplate) |
Modifier and Type | Method and Description |
---|---|
Streamable |
marshal(LinkBody<?> linkBody,
ConversionContext conversionContext)
Marshals an object to XML.
|
public StorageLinkBodyMarshaller(Marshaller<EmbeddedImage> embeddedImageMarshaller, XmlStreamWriterTemplate xmlStreamWriterTemplate)
public Streamable marshal(LinkBody<?> linkBody, ConversionContext conversionContext) throws XhtmlException
Marshaller
marshal
in interface Marshaller<LinkBody<?>>
linkBody
- conversionContext
- the conversion contextXhtmlException
Copyright © 2003–2020 Atlassian. All rights reserved.