com.atlassian.confluence.content.render.xhtml
Class MarshallingFragmentTransformer<T>

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.MarshallingFragmentTransformer<T>
All Implemented Interfaces:
FragmentTransformer

public class MarshallingFragmentTransformer<T>
extends Object
implements FragmentTransformer

Lazily resolves the marshaller and unmarshaller to use for transforming objects of the specified type.

Since:
5.2
See Also:
MarshallingRegistry

Constructor Summary
MarshallingFragmentTransformer(Class<T> clazz, MarshallingType marshallerMarshallingType, MarshallingType unmarshallerMarshallingType, MarshallingRegistry marshallingRegistry)
           
 
Method Summary
 boolean handles(StartElement startElementEvent, ConversionContext conversionContext)
           
 Streamable transform(XMLEventReader reader, FragmentTransformer mainFragmentTransformer, ConversionContext conversionContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarshallingFragmentTransformer

public MarshallingFragmentTransformer(Class<T> clazz,
                                      MarshallingType marshallerMarshallingType,
                                      MarshallingType unmarshallerMarshallingType,
                                      MarshallingRegistry marshallingRegistry)
Method Detail

handles

public boolean handles(StartElement startElementEvent,
                       ConversionContext conversionContext)
Specified by:
handles in interface FragmentTransformer

transform

public Streamable transform(XMLEventReader reader,
                            FragmentTransformer mainFragmentTransformer,
                            ConversionContext conversionContext)
                     throws XhtmlException
Specified by:
transform in interface FragmentTransformer
Throws:
XhtmlException


Copyright © 2003–2015 Atlassian. All rights reserved.