final class AttributeEnumeration extends java.lang.Object implements AxisEnumeration
| Modifier | Constructor and Description |
|---|---|
protected |
AttributeEnumeration(TinyDocumentImpl doc,
int element,
NodeTest nodeTest)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLastPosition()
Get the last position, that is the number of nodes in the enumeration
|
boolean |
hasMoreElements()
Test if there are mode nodes still to come.
|
boolean |
isPeer()
Determine whether the nodes returned by this enumeration are known to be peers, that is,
no node is a descendant or ancestor of another node.
|
boolean |
isReverseSorted()
Determine whether the nodes returned by this enumeration are known to be in
reverse document order.
|
boolean |
isSorted()
Determine whether the nodes returned by this enumeration are known to be in document order
|
NodeInfo |
nextElement()
Get the next node in the enumeration.
|
protected AttributeEnumeration(TinyDocumentImpl doc, int element, NodeTest nodeTest)
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 emptynodeType: - the type of node required. This may be any type of node,
but if it is not an attribute the enumeration will be emptynameTest: - condition to be applied to the names of the attributes selectedpublic boolean hasMoreElements()
hasMoreElements in interface AxisEnumerationhasMoreElements in interface NodeEnumerationpublic NodeInfo nextElement()
nextElement in interface AxisEnumerationnextElement in interface NodeEnumerationpublic boolean isSorted()
NodeEnumerationisSorted in interface NodeEnumerationpublic boolean isReverseSorted()
NodeEnumerationisReverseSorted in interface NodeEnumerationpublic boolean isPeer()
NodeEnumerationisPeer in interface NodeEnumerationpublic int getLastPosition()
getLastPosition in interface LastPositionFindergetLastPosition in interface AxisEnumeration