Interface Unmarshaller<T>

    • Method Detail

      • unmarshal

        T unmarshal​(XMLEventReader xmlEventReader,
                    FragmentTransformer mainFragmentTransformer,
                    ConversionContext conversionContext)
             throws XhtmlException
        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
        Throws:
        javax.xml.bind.UnmarshalException - if an error occurs during unmarshalling
        XhtmlException - if some other problem occurs
      • handles

        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