Class ViewUnresolvedLinkMarshaller
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.view.link.ViewUnresolvedLinkMarshaller
-
- All Implemented Interfaces:
Marshaller<UnresolvedLink>
- Direct Known Subclasses:
EditorUnresolvedLinkMarshaller
public class ViewUnresolvedLinkMarshaller extends Object implements Marshaller<UnresolvedLink>
-
-
Constructor Summary
Constructors Constructor Description ViewUnresolvedLinkMarshaller(XmlStreamWriterTemplate xmlStreamWriterTemplate, StaxStreamMarshaller<ResourceIdentifier> resourceIdentifierStaxStreamMarshaller, Marshaller<Link> unresolvedLinkBodyMarshaller, ModelToRenderedClassMapper mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Streamablemarshal(UnresolvedLink unresolvedLink, ConversionContext conversionContext)Marshals an object to XML.protected voidwriteAdditionalAttributes(UnresolvedLink unresolvedLink, XMLStreamWriter xmlStreamWriter, Marshaller<Link> unresolvedLinkBodyMarshaller, ConversionContext conversionContext)
-
-
-
Constructor Detail
-
ViewUnresolvedLinkMarshaller
public ViewUnresolvedLinkMarshaller(XmlStreamWriterTemplate xmlStreamWriterTemplate, StaxStreamMarshaller<ResourceIdentifier> resourceIdentifierStaxStreamMarshaller, Marshaller<Link> unresolvedLinkBodyMarshaller, ModelToRenderedClassMapper mapper)
-
-
Method Detail
-
marshal
public Streamable marshal(UnresolvedLink unresolvedLink, ConversionContext conversionContext) throws XhtmlException
Description copied from interface:MarshallerMarshals an object to XML.- Specified by:
marshalin interfaceMarshaller<UnresolvedLink>- Parameters:
unresolvedLink- object to marshalconversionContext- the conversion context- Returns:
- the XML representation of the object
- Throws:
XhtmlException- if an error occurs during marshalling
-
writeAdditionalAttributes
protected void writeAdditionalAttributes(UnresolvedLink unresolvedLink, XMLStreamWriter xmlStreamWriter, Marshaller<Link> unresolvedLinkBodyMarshaller, ConversionContext conversionContext) throws XMLStreamException
- Throws:
XMLStreamException
-
-