net.sf.saxon.tree

Class AttributeEnumeration

final class AttributeEnumeration extends AxisIteratorImpl implements LookaheadIterator

AttributeEnumeration is an enumeration of all the attribute nodes of an Element.
Constructor Summary
AttributeEnumeration(NodeImpl node, NodeTest nodeTest)
Constructor
Method Summary
SequenceIteratorgetAnother()
Get another enumeration of the same nodes
intgetProperties()
Get properties of this iterator, as a bit-significant integer.
booleanhasNext()
Test if there are mode nodes still to come.
Itemnext()
Get the next node in the iteration, or null if there are no more.

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

getAnother

public SequenceIterator getAnother()
Get another enumeration of the same nodes

getProperties

public int getProperties()
Get properties of this iterator, as a bit-significant integer.

Returns: the properties of this iterator. This will be some combination of properties such as AttributeEnumeration, AttributeEnumeration, and AttributeEnumeration. 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.

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)

next

public Item next()
Get the next node in the iteration, or null if there are no more.