Class BasicNodeSet

java.lang.Object
org.apache.commons.jxpath.BasicNodeSet
All Implemented Interfaces:
NodeSet

public class BasicNodeSet extends Object implements NodeSet
A simple implementation of NodeSet that behaves as a collection of pointers.
Version:
$Revision: 652845 $ $Date: 2008-05-02 12:46:46 -0500 (Fri, 02 May 2008) $
  • Field Details

    • pointers

      private List pointers
    • readOnlyPointers

      private List readOnlyPointers
    • nodes

      private List nodes
    • values

      private List values
  • Constructor Details

    • BasicNodeSet

      public BasicNodeSet()
  • Method Details

    • add

      public void add(Pointer pointer)
      Add a pointer to this NodeSet.
      Parameters:
      pointer - to add
    • add

      public void add(NodeSet nodeSet)
      Add the specified NodeSet to this NodeSet.
      Parameters:
      nodeSet - to add
    • remove

      public void remove(Pointer pointer)
      Remove a pointer from this NodeSet.
      Parameters:
      pointer - to remove
    • getPointers

      public List getPointers()
      Description copied from interface: NodeSet
      Returns a list of pointers for all nodes in the set.
      Specified by:
      getPointers in interface NodeSet
      Returns:
      List
    • getNodes

      public List getNodes()
      Description copied from interface: NodeSet
      Returns a list of nodes.
      Specified by:
      getNodes in interface NodeSet
      Returns:
      List
    • getValues

      public List getValues()
      Description copied from interface: NodeSet
      Returns a list of values of all contained pointers.
      Specified by:
      getValues in interface NodeSet
      Returns:
      List
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • clearCacheLists

      private void clearCacheLists()
      Clear cache list members.