Class GeneralComparisonFeed

  • All Implemented Interfaces:
    javax.xml.transform.Result, Receiver

    public class GeneralComparisonFeed
    extends AtomicItemFeed
    This class is used when a streaming template requests a general comparison with one operand being pushed from the streamed input document, and the other being evaluated in pull mode.
    • Method Detail

      • open

        public void open​(Terminator terminator)
                  throws XPathException
        Description copied from class: ItemFeed
        Start evaluating the expression. The default implementation does nothing.
        Overrides:
        open in class ItemFeed
        Parameters:
        terminator - used to achieve early exit
        Throws:
        XPathException - if a dynamic error occurs
      • append

        public void append​(Item item)
                    throws XPathException
        Supply an item to the feed
        Specified by:
        append in interface Receiver
        Specified by:
        append in class ItemFeed
        Parameters:
        item - the item being fed (in this case, an item in the "pushed" operand sequence that is being compared
        Throws:
        XPathException - to report any failure