Oracle Security Developer Tools XML Security Java API Reference
10g (10.1.4.0.1)

B28178-01


oracle.security.xmlsec.util
Class NodeListImpl

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended byoracle.security.xmlsec.util.NodeListImpl

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

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, 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, remove, 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, remove, 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.

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

Oracle Security Developer Tools XML Security Java API Reference
10g (10.1.4.0.1)

B28178-01


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