public final class AttributeIterator extends java.lang.Object implements AxisIterator, LookaheadIterator
SequenceIterator.Property
Constructor and Description |
---|
AttributeIterator(NodeInfo element,
AttributeMap attributes,
java.util.function.BiFunction<NodeInfo,AttributeInfo,NodeInfo> attributeMaker)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.util.EnumSet<SequenceIterator.Property> |
getProperties()
Get properties of this iterator, as a bit-significant integer.
|
boolean |
hasNext()
Test if there are mode nodes still to come.
|
NodeInfo |
next()
Get the next node in the iteration, or null if there are no more.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asIterator, forEachNode
forEach, toList
close, forEachOrFail, materialize
public AttributeIterator(NodeInfo element, AttributeMap attributes, java.util.function.BiFunction<NodeInfo,AttributeInfo,NodeInfo> attributeMaker)
element:
- the element whose attributes are required. This may be any type of node,
but if it is not an element the enumeration will be emptypublic boolean hasNext()
hasNext
in interface LookaheadIterator
public NodeInfo next()
next
in interface SequenceIterator
next
in interface AxisIterator
next
in interface UnfailingIterator
public java.util.EnumSet<SequenceIterator.Property> getProperties()
getProperties
in interface SequenceIterator
SequenceIterator.Property.GROUNDED
, SequenceIterator.Property.LAST_POSITION_FINDER
,
and SequenceIterator.Property.LOOKAHEAD
. It is always
acceptable to return the value zero, indicating that there are no known special properties.
It is acceptable for the properties of the iterator to change depending on its state.Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.