Class UrlLinkMarshaller
java.lang.Object
com.atlassian.confluence.content.render.xhtml.migration.UrlLinkMarshaller
- All Implemented Interfaces:
Marshaller<Link>
A Marshaller specifically used in handling links for
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmarshal
(Link link, ConversionContext conversionContext) Marshals an object to XML.
-
Constructor Details
-
UrlLinkMarshaller
-
-
Method Details
-
marshal
Description copied from interface:Marshaller
Marshals an object to XML.- Specified by:
marshal
in interfaceMarshaller<Link>
- Parameters:
link
- object to marshalconversionContext
- the conversion context- Returns:
- the XML representation of the object
- Throws:
XhtmlException
- if an error occurs during marshalling
-