SequenceIterator
, AxisIterator
, UnfailingIterator
final class AttributeEnumeration extends AxisIteratorImpl
current, position
GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
Constructor | Description |
---|---|
AttributeEnumeration(TinyTree tree,
int element,
NodeTest nodeTest) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
Value |
atomize() |
Return the atomized value of the current node.
|
NodeInfo |
current() |
Get the current node in the sequence.
|
AxisIterator |
getAnother() |
Get another iteration over the same nodes
|
java.lang.CharSequence |
getStringValue() |
Return the string value of the current node.
|
boolean |
moveNext() |
Move to the next node in the iteration.
|
NodeInfo |
next() |
Get the next item in the sequence.
|
close, getProperties, iterateAxis, position
AttributeEnumeration(TinyTree tree, int element, NodeTest nodeTest)
tree
- : the containing TinyTreeelement
- : the node number of the element whose attributes are requirednodeTest
- : condition to be applied to the names of the attributes selectedpublic boolean moveNext()
moveNext
in interface AxisIterator
moveNext
in class AxisIteratorImpl
public NodeInfo next()
public NodeInfo current()
current
in interface AxisIterator
current
in interface SequenceIterator
current
in interface UnfailingIterator
current
in class AxisIteratorImpl
public Value atomize() throws XPathException
atomize
in interface AxisIterator
atomize
in class AxisIteratorImpl
java.lang.NullPointerException
- if there is no current nodeXPathException
- if the current node
cannot be atomized, for example because it is an element node with
element-only content.public java.lang.CharSequence getStringValue()
getStringValue
in interface AxisIterator
getStringValue
in class AxisIteratorImpl
java.lang.NullPointerException
- if there is no current nodepublic AxisIterator getAnother()