Class AttributeIterator
java.lang.Object
net.sf.saxon.tree.tiny.AttributeIterator
- All Implemented Interfaces:
Closeable, AutoCloseable, AtomizedValueIterator, SequenceIterator, AxisIterator
AttributeIterator is an iterator over all the attribute nodes of an Element in the TinyTree.
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeIterator(TinyTree tree, int element, NodeTest nodeTest) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionnext()Get the next item in the sequence.Deliver the atomic value that is next in the atomized resultMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SequenceIterator
close
-
Constructor Details
-
AttributeIterator
Constructor. Note: this constructor will only be called if the relevant node is an element and if it has one or more attributes. Otherwise anEmptyIteratorwill 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 Details
-
next
Get the next item in the sequence.- Specified by:
nextin interfaceAxisIterator- Specified by:
nextin interfaceSequenceIterator- Returns:
- the next Item. If there are no more nodes, return null.
-
nextAtomizedValue
Deliver the atomic value that is next in the atomized result- Specified by:
nextAtomizedValuein interfaceAtomizedValueIterator- Returns:
- the next atomic value
- Throws:
XPathException- if a failure occurs reading or atomizing the next value
-