Class AttributeEnumeration

    • Constructor Detail

      • AttributeEnumeration

        public AttributeEnumeration​(NodeImpl node,
                                    NodeTest nodeTest)
        Constructor
        Parameters:
        node - : the element whose attributes are required. This may be any type of node, but if it is not an element the enumeration will be empty
        nodeTest - : condition to be applied to the names of the attributes selected
    • Method Detail

      • hasNext

        public boolean hasNext()
        Test if there are mode nodes still to come. ("elements" is used here in the sense of the Java enumeration class, not in the XML sense)
        Specified by:
        hasNext in interface LookaheadIterator
        Returns:
        true if there are more items in the sequence
      • next

        public Item next()
        Get the next node in the iteration, or null if there are no more.
        Specified by:
        next in interface AxisIterator
        Specified by:
        next in interface SequenceIterator
        Returns:
        the next item, or null if there are no more items. Once a call on next() has returned null, no further calls should be made. The preferred action for an iterator if subsequent calls on next() are made is to return null again, and all implementations within Saxon follow this rule.