Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.commons.jxpath
Class BasicNodeSet  view BasicNodeSet download BasicNodeSet.java

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 $

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()
          Convert this Object to a human-readable String.
 
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()
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()).