public interface Unmarshaller<T>
Modifier and Type | Method and Description |
---|---|
boolean |
handles(StartElement startElementEvent,
ConversionContext conversionContext)
Determines whether or not this unmarshaller should be applied to a fragment with the specified start element.
|
T |
unmarshal(XMLEventReader xmlEventReader,
FragmentTransformer mainFragmentTransformer,
ConversionContext conversionContext)
Unmarshalls a StAX event stream to an object.
|
T unmarshal(XMLEventReader xmlEventReader, FragmentTransformer mainFragmentTransformer, ConversionContext conversionContext) throws XhtmlException
xmlEventReader
- a reader over the fragment to unmarshallmainFragmentTransformer
- TODOconversionContext
- the conversion contextUnmarshalException
- if an error occurs during unmarshallingXhtmlException
- if some other problem occursboolean handles(StartElement startElementEvent, ConversionContext conversionContext)
startElementEvent
- start elementconversionContext
- the conversion contextCopyright © 2003–2015 Atlassian. All rights reserved.