|
Oracle Security Developer Tools XML Security Java API Reference 11g (11.1.1) E10680-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
oracle.security.xmlsec.util.NodeListImpl
public class NodeListImpl
An implementation class for the org.w3c.dom.NodeList
interface, representing a non-live view of the DOM.
Note: Methods in this class are not synchronized.
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
NodeListImpl() Creates a new, empty NodeListImpl . |
|
NodeListImpl(java.util.Collection nodes) Creates a new NodeListImpl containing the given Collection 's Node s. |
|
NodeListImpl(int size) Creates a new, empty NodeListImpl with the given initial capacity. |
|
NodeListImpl(org.w3c.dom.Node node) Creates a new NodeListImpl containing the given Node . |
|
NodeListImpl(org.w3c.dom.NodeList nodes) Creates a new NodeListImpl containing the given NodeList 's Node s. |
Method Summary | |
---|---|
int |
getLength() Returns the number of nodes in the list. |
org.w3c.dom.Node |
item(int index) Returns the index th item in the collection. |
java.lang.String |
toString() Returns a string representation of this node list. |
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
Constructor Detail |
---|
public NodeListImpl()
NodeListImpl
.public NodeListImpl(int size)
NodeListImpl
with the given initial capacity.
size
- The initial capacity for the new NodeListImpl
.java.lang.IllegalArgumentException
- If size
is less than 0.public NodeListImpl(org.w3c.dom.Node node)
NodeListImpl
containing the given Node
.
node
- The node to be contained in the new NodeListImpl
.public NodeListImpl(org.w3c.dom.NodeList nodes)
NodeListImpl
containing the given NodeList
's Node
s.
nodes
- The nodes to be contained in the new NodeListImpl
.public NodeListImpl(java.util.Collection nodes)
NodeListImpl
containing the given Collection
's Node
s.
nodes
- The nodes to be contained in the new NodeListImpl
.Method Detail |
---|
public java.lang.String toString()
toString
in class java.util.AbstractCollection
public org.w3c.dom.Node item(int index)
index
th item in the collection. If index
is greater than or equal to the number of nodes in the list, this returns null
.item
in interface org.w3c.dom.NodeList
index
- Index into the collection.index
th position in the NodeList, or null
if that is not a valid index.public int getLength()
length-1
inclusive.getLength
in interface org.w3c.dom.NodeList
|
Oracle Security Developer Tools XML Security Java API Reference 11g (11.1.1) E10680-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |