net.sf.saxon.tinytree
Class AttributeEnumeration
java.lang.Object
net.sf.saxon.om.AxisIteratorImpl
net.sf.saxon.tinytree.AttributeEnumeration
- All Implemented Interfaces:
- AtomizableIterator, AxisIterator, SequenceIterator
final class AttributeEnumeration
- extends AxisIteratorImpl
AttributeEnumeration is an iterator over all the attribute nodes of an Element.
Method Summary |
SequenceIterator |
getAnother()
Get another iteration over the same nodes |
Item |
next()
Get the next node in the iteration. |
void |
setIsAtomizing(boolean atomizing)
Indicate that any nodes returned in the sequence will be atomized. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributeEnumeration
protected AttributeEnumeration(TinyDocumentImpl doc,
int element,
NodeTest nodeTest)
- Constructor. Note: this constructor will only be called if the relevant node
is an element and if it has one or more attributes. Otherwise an EmptyEnumeration
will be constructed instead.
- Parameters:
doc:
- the containing documentelement:
- the element whose attributes are requirednodeTest:
- condition to be applied to the names of the attributes selected
setIsAtomizing
public final void setIsAtomizing(boolean atomizing)
- Description copied from class:
AxisIteratorImpl
- Indicate that any nodes returned in the sequence will be atomized. This
means that if it wishes to do so, the implementation can return the typed
values of the nodes rather than the nodes themselves. The implementation
is free to ignore this hint.
- Specified by:
setIsAtomizing
in interface AtomizableIterator
- Overrides:
setIsAtomizing
in class AxisIteratorImpl
- Parameters:
atomizing
- true if the caller of this iterator will atomize any
nodes that are returned, and is therefore willing to accept the typed
value of the nodes instead of the nodes themselves.
next
public Item next()
- Get the next node in the iteration.
- Returns:
- the next Item. If there are no more nodes, return null.
getAnother
public SequenceIterator getAnother()
- Get another iteration over the same nodes
- Returns:
- a new iterator over the same sequence