com.icl.saxon.tree

Class AttributeEnumeration

final class AttributeEnumeration extends Object implements AxisEnumeration

AttributeEnumeration is an enumeration of all the attribute nodes of an Element.
Constructor Summary
AttributeEnumeration(NodeImpl node, NodeTest nodeTest)
Constructor
Method Summary
intgetLastPosition()
Get the last position, that is the number of nodes in the enumeration
booleanhasMoreElements()
Test if there are mode nodes still to come.
booleanisPeer()
booleanisReverseSorted()
booleanisSorted()
NodeInfonextElement()
Get the next node in the enumeration.

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 nodeType: the type of node required. This may be any type of node, but if it is not an attribute the enumeration will be empty nameTest: condition to be applied to the names of the attributes selected

Method Detail

getLastPosition

public int getLastPosition()
Get the last position, that is the number of nodes in the enumeration

hasMoreElements

public boolean hasMoreElements()
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)

isPeer

public boolean isPeer()

isReverseSorted

public boolean isReverseSorted()

isSorted

public boolean isSorted()

nextElement

public NodeInfo nextElement()
Get the next node in the enumeration. ("elements" is used here in the sense of the Java enumeration class, not in the XML sense)