Skip navigation links

Oracle Fusion Middleware XML Security Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10680-03


oracle.security.xmlsec.util
Class NodeListImpl

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList
              extended by oracle.security.xmlsec.util.NodeListImpl

All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess, org.w3c.dom.NodeList

public class NodeListImpl
extends java.util.ArrayList
implements org.w3c.dom.NodeList

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.

See Also:
Serialized Form

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 Nodes.
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 Nodes.

 

Method Summary
 int getLength()
          Returns the number of nodes in the list.
 org.w3c.dom.Node item(int index)
          Returns the indexth 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

NodeListImpl

public NodeListImpl()
Creates a new, empty NodeListImpl.

NodeListImpl

public NodeListImpl(int size)
Creates a new, empty NodeListImpl with the given initial capacity.
Parameters:
size - The initial capacity for the new NodeListImpl.
Throws:
java.lang.IllegalArgumentException - If size is less than 0.

NodeListImpl

public NodeListImpl(org.w3c.dom.Node node)
Creates a new NodeListImpl containing the given Node.
Parameters:
node - The node to be contained in the new NodeListImpl.

NodeListImpl

public NodeListImpl(org.w3c.dom.NodeList nodes)
Creates a new NodeListImpl containing the given NodeList's Nodes.
Parameters:
nodes - The nodes to be contained in the new NodeListImpl.
Since:
1.2

NodeListImpl

public NodeListImpl(java.util.Collection nodes)
Creates a new NodeListImpl containing the given Collection's Nodes.
Parameters:
nodes - The nodes to be contained in the new NodeListImpl.
Since:
2.0

Method Detail

toString

public java.lang.String toString()
Returns a string representation of this node list.
Overrides:
toString in class java.util.AbstractCollection

item

public org.w3c.dom.Node item(int index)
Returns the indexth item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null.
Specified by:
item in interface org.w3c.dom.NodeList
Parameters:
index - Index into the collection.
Returns:
The node at the indexth position in the NodeList, or null if that is not a valid index.

getLength

public int getLength()
Returns the number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive.
Specified by:
getLength in interface org.w3c.dom.NodeList

Skip navigation links

Oracle Fusion Middleware XML Security Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10680-03


Copyright © 2005, 2011 , Oracle. All rights reserved.