com.atlassian.confluence.content.render.xhtml.migration
Class UrlLinkMarshaller

java.lang.Object
  extended by 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.


Constructor Summary
UrlLinkMarshaller(XmlStreamWriterTemplate xmlStreamWriterTemplate)
           
 
Method Summary
 String marshal(Link link, ConversionContext conversionContext)
          Marshals an object to XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlLinkMarshaller

public UrlLinkMarshaller(XmlStreamWriterTemplate xmlStreamWriterTemplate)
Method Detail

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 marshal
conversionContext - the conversion context
Returns:
the XML representation of the object
Throws:
XhtmlException


Copyright © 2003-2013 Atlassian. All Rights Reserved.