public class DOMNodeSetData extends Object implements NodeSetData
NodeSetData. The purpose of this
class is to provide additional context necessary for iterating over DOM node
sets.
The iterators returned by this class are live. This means that advancing or changing the position of a returned iterator affects all other iterators returned by this class.
Unless otherwise specified, the methods defined in this class are not thread-safe. Multiple threads that need to access a single object concurrently should synchronize amongst themselves and provide the necessary locking. Multiple threads each manipulating separate objects need not synchronize.
| Modifier and Type | Field and Description |
|---|---|
protected Iterator |
iterator_
The iterator to be returned by
iterator(). |
| Constructor and Description |
|---|
DOMNodeSetData(Iterator iterator)
Creates a
DOMNodeSetData containing the specified
Iterator. |
| Modifier and Type | Method and Description |
|---|---|
Iterator |
iterator()
Returns a read-only iterator over the nodes contained in this
NodeSetData in
document order . |
protected Iterator iterator_
iterator().public DOMNodeSetData(Iterator iterator)
DOMNodeSetData containing the specified
Iterator.iterator - the iteratorNullPointerException - if iterator is nullpublic Iterator iterator()
javax.xml.crypto.NodeSetDataNodeSetData in
document order . Attempts to modify the returned iterator via the
remove method throw UnsupportedOperationException
.iterator in interface NodeSetDataIterator over the nodes in this
NodeSetData in document orderNodeSetData.iterator()© 2002-2005 IAIK, © 2004, 2006 - 2019 Stiftung SIC