public class UrlLinkMarshaller extends Object implements Marshaller<Link>
UrlResourceIdentifier. These links
are marshalled differently because we actually want them to become standard XHTML links of the
form <a href=""> style.
Such links are not used in typical editor/storage round tripping since the editor will simply
create <a href=""> style links for URLs anyway. These UrlResourceIdentifier links
only occur during migration, or as part of macro parameters.
| Constructor and Description |
|---|
UrlLinkMarshaller(XmlStreamWriterTemplate xmlStreamWriterTemplate) |
| Modifier and Type | Method and Description |
|---|---|
Streamable |
marshal(Link link,
ConversionContext conversionContext)
Marshals an object to XML.
|
public UrlLinkMarshaller(XmlStreamWriterTemplate xmlStreamWriterTemplate)
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–2020 Atlassian. All rights reserved.