com.icl.saxon.tinytree
final class AttributeEnumeration extends 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 AxisEnumeration
hasMoreElements
in interface NodeEnumeration
public NodeInfo nextElement()
nextElement
in interface AxisEnumeration
nextElement
in interface NodeEnumeration
public boolean isSorted()
NodeEnumeration
isSorted
in interface NodeEnumeration
public boolean isReverseSorted()
NodeEnumeration
isReverseSorted
in interface NodeEnumeration
public boolean isPeer()
NodeEnumeration
isPeer
in interface NodeEnumeration
public int getLastPosition()
getLastPosition
in interface LastPositionFinder
getLastPosition
in interface AxisEnumeration