Package net.sf.saxon.tinytree
Class AttributeEnumeration
- java.lang.Object
-
- net.sf.saxon.om.AxisIteratorImpl
-
- net.sf.saxon.tinytree.AttributeEnumeration
-
- All Implemented Interfaces:
AtomizableIterator
,AxisIterator
,SequenceIterator
final class AttributeEnumeration extends AxisIteratorImpl
AttributeEnumeration is an iterator over all the attribute nodes of an Element.
-
-
Field Summary
-
Fields inherited from class net.sf.saxon.om.AxisIteratorImpl
current, position
-
Fields inherited from interface net.sf.saxon.om.SequenceIterator
ATOMIZABLE, GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
-
-
Constructor Summary
Constructors Constructor Description AttributeEnumeration(TinyTree tree, int element, NodeTest nodeTest)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SequenceIterator
getAnother()
Get another iteration over the same nodesItem
next()
Get the next node in the iteration.-
Methods inherited from class net.sf.saxon.om.AxisIteratorImpl
current, getProperties, isAtomizing, position, setIsAtomizing
-
-
-
-
Constructor Detail
-
AttributeEnumeration
AttributeEnumeration(TinyTree tree, int element, NodeTest nodeTest)
Constructor. Note: this constructor will only be called if the relevant node is an element and if it has one or more attributes. Otherwise an EmptyEnumeration will be constructed instead.- Parameters:
tree
- : the containing TinyTreeelement
- : the node number of the element whose attributes are requirednodeTest
- : condition to be applied to the names of the attributes selected
-
-
Method Detail
-
next
public Item next()
Get the next node in the iteration.- Returns:
- the next Item. If there are no more nodes, return null.
-
getAnother
public SequenceIterator getAnother()
Get another iteration over the same nodes- Returns:
- a new iterator over the same sequence
-
-