Class ElementNameTracker

  • All Implemented Interfaces:
    PullProvider

    public class ElementNameTracker
    extends PullFilter
    This is a filter that can be added to a pull pipeline to remember element names so that they are available immediately after the END_ELEMENT event is notified
    • Field Detail

      • used

        int used
      • elementJustEnded

        int elementJustEnded
    • Constructor Detail

      • ElementNameTracker

        public ElementNameTracker​(PullProvider base)
    • Method Detail

      • next

        public int next()
                 throws XPathException
        Get the next event.

        Note that a subclass that overrides this method is responsible for ensuring that current() works properly. This can be achieved by setting the field currentEvent to the event returned by any call on next().

        Specified by:
        next in interface PullProvider
        Overrides:
        next in class PullFilter
        Returns:
        an integer code indicating the type of event. The code PullProvider.END_OF_INPUT is returned at the end of the sequence.
        Throws:
        XPathException