org.apache.commons.jxpath
Class BasicNodeSet

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

public class BasicNodeSet
extends java.lang.Object
implements NodeSet

A simple implementation of NodeSet that behaves as a collection of pointers.

Version:
$Revision: 1.3 $ $Date: 2004/02/29 14:17:42 $
Author:
Dmitri Plotnikov

Field Summary
private  java.util.List nodes
           
private  java.util.List pointers
           
private  java.util.List readOnlyPointers
           
private  java.util.List values
           
 
Constructor Summary
BasicNodeSet()
           
 
Method Summary
 void add(Pointer pointer)
           
 java.util.List getNodes()
          Returns a list of nodes.
 java.util.List getPointers()
          Returns a list of pointers for all nodes in the set.
 java.util.List getValues()
          Returns a list of values of all contained pointers.
 void remove(Pointer pointer)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pointers

private java.util.List pointers

readOnlyPointers

private java.util.List readOnlyPointers

nodes

private java.util.List nodes

values

private java.util.List values
Constructor Detail

BasicNodeSet

public BasicNodeSet()
Method Detail

add

public void add(Pointer pointer)

remove

public void remove(Pointer pointer)

getPointers

public java.util.List getPointers()
Description copied from interface: NodeSet
Returns a list of pointers for all nodes in the set.

Specified by:
getPointers in interface NodeSet

getNodes

public java.util.List getNodes()
Description copied from interface: NodeSet
Returns a list of nodes.

Specified by:
getNodes in interface NodeSet

getValues

public java.util.List getValues()
Description copied from interface: NodeSet
Returns a list of values of all contained pointers.

Specified by:
getValues in interface NodeSet

toString

public java.lang.String toString()