public class ViewDraftLinkMarshaller extends Object implements Marshaller<Link>
DraftResourceIdentifier and
it therefore must be possible to render such a ResourceIdentifier.
Marshalling links to a Draft is a scenario that can only occur in the Editor. There is no view mode equivalent.
| Constructor and Description |
|---|
ViewDraftLinkMarshaller(CommonLinkAttributesWriter commonLinkAttributesWriter,
Marshaller<Link> linkBodyMarshaller,
XmlStreamWriterTemplate xmlStreamWriterTemplate,
StaxStreamMarshaller<Link> linkStaxStreamMarshaller) |
| Modifier and Type | Method and Description |
|---|---|
Streamable |
marshal(Link link,
ConversionContext conversionContext)
Marshals an object to XML.
|
public ViewDraftLinkMarshaller(CommonLinkAttributesWriter commonLinkAttributesWriter, Marshaller<Link> linkBodyMarshaller, XmlStreamWriterTemplate xmlStreamWriterTemplate, @Nullable StaxStreamMarshaller<Link> linkStaxStreamMarshaller)
public Streamable marshal(Link link, ConversionContext conversionContext) throws XhtmlException
Marshallermarshal in interface Marshaller<Link>link - object to marshalconversionContext - the conversion contextXhtmlException - if an error occurs during marshallingCopyright © 2003–2021 Atlassian. All rights reserved.