com.atlassian.confluence.content.render.xhtml.migration
Class UrlLinkMarshaller
java.lang.Object
com.atlassian.confluence.content.render.xhtml.migration.UrlLinkMarshaller
- All Implemented Interfaces:
- Marshaller<Link>
public class UrlLinkMarshaller
- extends Object
- implements 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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UrlLinkMarshaller
public UrlLinkMarshaller(XmlStreamWriterTemplate xmlStreamWriterTemplate)
marshal
public String marshal(Link link,
ConversionContext conversionContext)
throws XhtmlException
- Description copied from interface:
Marshaller
- Marshals an object to XML.
- Specified by:
marshal
in interface Marshaller<Link>
- Parameters:
link
- object to marshalconversionContext
- the conversion context
- Returns:
- the XML representation of the object
- Throws:
XhtmlException
Copyright © 2003-2012 Atlassian. All Rights Reserved.