All Implemented Interfaces:
Serializable, Cloneable, Iterable<Node>, Collection<Node>, List<Node>, RandomAccess, SequencedCollection<Node>

public class NodeListextends Vector<Node>
A vector-based collection of XML nodes.

This class extends Vector to provide specialized methods for managing collections of Node objects. It includes methods for finding nodes by name or by name suffix.

See Also:
  • Constructor Details

    • NodeList

      public NodeList()
      Creates an empty NodeList.
  • Method Details

    • getNode

      public Node getNode(int n)
      Gets the node at the specified index.
      Parameters:
      n - the index of the node to retrieve
      Returns:
      the node at the specified index
    • getNode

      public Node getNode(String name)
      Gets the first node with the specified name.
      Parameters:
      name - the name of the node to find
      Returns:
      the first node with the specified name, or null if not found
    • getEndsWith

      public Node getEndsWith(String name)
      Gets the first node whose name ends with the specified string.
      Parameters:
      name - the suffix to match
      Returns:
      the first node with name ending with the specified string, or null if not found