public class

StorageEmbeddedImageUnmarshaller

extends Object
implements Unmarshaller<T>
java.lang.Object
   ↳ com.atlassian.confluence.content.render.xhtml.storage.embed.StorageEmbeddedImageUnmarshaller

Summary

Fields
public static final QName IMAGE_ELEMENT
Public Constructors
StorageEmbeddedImageUnmarshaller(Unmarshaller<ResourceIdentifier> resourceIdentifierUnmarshaller, XmlEventReaderFactory xmlEventReaderFactory)
Public Methods
boolean handles(StartElement startElementEvent, ConversionContext conversionContext)
Determines whether or not this unmarshaller should be applied to a fragment with the specified start element.
EmbeddedImage unmarshal(XMLEventReader xmlEventReader, FragmentTransformer mainFragmentTransformer, ConversionContext conversionContext)
Unmarshalls a StAX event stream to an object.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.content.render.xhtml.Unmarshaller

Fields

public static final QName IMAGE_ELEMENT

Public Constructors

public StorageEmbeddedImageUnmarshaller (Unmarshaller<ResourceIdentifier> resourceIdentifierUnmarshaller, XmlEventReaderFactory xmlEventReaderFactory)

Public Methods

public boolean handles (StartElement startElementEvent, ConversionContext conversionContext)

Determines whether or not this unmarshaller should be applied to a fragment with the specified start element.

Parameters
startElementEvent start element
conversionContext the conversion context
Returns
  • true if this unmarshaller can be applied, false otherwise

public EmbeddedImage unmarshal (XMLEventReader xmlEventReader, FragmentTransformer mainFragmentTransformer, ConversionContext conversionContext)

Unmarshalls a StAX event stream to an object.

Parameters
xmlEventReader a reader over the fragment to unmarshall
mainFragmentTransformer TODO
conversionContext the conversion context
Returns
  • the unmarshalled object