public interface AttachedImageMarshaller
EmbeddedImage
for an image attached to content, rather than referring to an external resource.Modifier and Type | Method and Description |
---|---|
boolean |
canMarshal(EmbeddedImage embeddedImage,
AttachmentResourceIdentifier attachmentResourceIdentifier,
ConversionContext conversionContext)
This method checks whether the marshaller implementation can handle the image passed to it.
|
Streamable |
marshal(XmlStreamWriterTemplate xmlStreamWriterTemplate,
EmbeddedImage embeddedImage,
AttachmentResourceIdentifier attachmentResourceIdentifier,
ConversionContext conversionContext)
Marshals an Attached image into an tag for display on the page.
|
Streamable marshal(XmlStreamWriterTemplate xmlStreamWriterTemplate, EmbeddedImage embeddedImage, AttachmentResourceIdentifier attachmentResourceIdentifier, ConversionContext conversionContext) throws XhtmlException, UnsupportedOperationException
xmlStreamWriterTemplate
- The XML writer that writes the tagembeddedImage
- The image to marshallattachmentResourceIdentifier
- Identifier of the attachmentconversionContext
- The output context to render forXhtmlException
UnsupportedOperationException
- If the embedded image cannot be handled by this Marshaller. The exception
is thrown if and only if canMarshal returns false, so canMarshal
should be called first to check.boolean canMarshal(EmbeddedImage embeddedImage, AttachmentResourceIdentifier attachmentResourceIdentifier, ConversionContext conversionContext)
embeddedImage
- The image to marshallattachmentResourceIdentifier
- Identifier of the attachmentconversionContext
- The output context to render forCopyright © 2003–2016 Atlassian. All rights reserved.