java.lang.Object
org.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 $
pointers
private java.util.List pointers
readOnlyPointers
private java.util.List readOnlyPointers
nodes
private java.util.List nodes
values
private java.util.List values
BasicNodeSet
public BasicNodeSet()
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()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).