Class UnmarshalMarshalFragmentTransformer<T>
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.UnmarshalMarshalFragmentTransformer<T>
-
- All Implemented Interfaces:
FragmentTransformer
public class UnmarshalMarshalFragmentTransformer<T> extends Object implements FragmentTransformer
AFragmentTransformer
that transforms by unmarshalling and then re-marshalling the fragment. Any transformation occurs due to this transition via the model objects.
-
-
Constructor Summary
Constructors Constructor Description UnmarshalMarshalFragmentTransformer(Unmarshaller<T> unmarshaller, Marshaller<T> marshaller)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
handles(StartElement startElementEvent, ConversionContext conversionContext)
Streamable
transform(XMLEventReader reader, FragmentTransformer mainFragmentTransformer, ConversionContext conversionContext)
-
-
-
Constructor Detail
-
UnmarshalMarshalFragmentTransformer
public UnmarshalMarshalFragmentTransformer(Unmarshaller<T> unmarshaller, Marshaller<T> marshaller)
-
-
Method Detail
-
handles
public boolean handles(StartElement startElementEvent, ConversionContext conversionContext)
- Specified by:
handles
in interfaceFragmentTransformer
-
transform
public Streamable transform(XMLEventReader reader, FragmentTransformer mainFragmentTransformer, ConversionContext conversionContext) throws XhtmlException
- Specified by:
transform
in interfaceFragmentTransformer
- Throws:
XhtmlException
-
-