Top Description Fields Constructors Methods
org.eclipse.persistence.platform.xml

public Class XMLNodeList

extends Object
implements NodeList
Class Inheritance
All Implemented Interfaces
org.w3c.dom.NodeList
Imports
java.util.ArrayList, org.w3c.dom.Node, .NodeList

Implementation of the org.w3c.dom.NodeList interface

Field Summary

Modifier and TypeField and Description
private ArrayList<E>

Constructor Summary

AccessConstructor and Description
public
public
XMLNodeList(int size)

Method Summary

Modifier and TypeMethod and Description
public void
add(Node node)

public void
addAll(NodeList nodelist)

public int
getLength()

Implements org.w3c.dom.NodeList.getLength.

The number of nodes in the list.
public Node
item(int
Index into the collection.
i
)

Implements org.w3c.dom.NodeList.item.

Returns the indexth item in the collection.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nodesback to summary
private ArrayList<E> nodes

Constructor Detail

XMLNodeListback to summary
public XMLNodeList()
XMLNodeListback to summary
public XMLNodeList(int size)

Method Detail

addback to summary
public void add(Node node)
addAllback to summary
public void addAll(NodeList nodelist)
getLengthback to summary
public int getLength()

Implements org.w3c.dom.NodeList.getLength.

Doc from org.w3c.dom.NodeList.getLength.

The number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive.

Annotations
@Override
itemback to summary
public Node item(int i)

Implements org.w3c.dom.NodeList.item.

Doc from org.w3c.dom.NodeList.item.

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.

Parameters
i:int

Index into the collection.

Returns:Node

The node at the indexth position in the NodeList, or null if that is not a valid index.

Annotations
@Override