Package org.apache.commons.jxpath
Class BasicNodeSet
java.lang.Object
org.apache.commons.jxpath.BasicNodeSet
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add the specified NodeSet to this NodeSet.void
Add a pointer to this NodeSet.private void
Clear cache list members.getNodes()
Returns a list of nodes.Returns a list of pointers for all nodes in the set.Returns a list of values of all contained pointers.void
Remove a pointer from this NodeSet.toString()
-
Field Details
-
pointers
-
readOnlyPointers
-
nodes
-
values
-
-
Constructor Details
-
BasicNodeSet
public BasicNodeSet()
-
-
Method Details
-
add
Add a pointer to this NodeSet.- Parameters:
pointer
- to add
-
add
Add the specified NodeSet to this NodeSet.- Parameters:
nodeSet
- to add
-
remove
Remove a pointer from this NodeSet.- Parameters:
pointer
- to remove
-
getPointers
Description copied from interface:NodeSet
Returns a list of pointers for all nodes in the set.- Specified by:
getPointers
in interfaceNodeSet
- Returns:
- List
-
getNodes
Description copied from interface:NodeSet
Returns a list of nodes. -
getValues
Description copied from interface:NodeSet
Returns a list of values of all contained pointers. -
toString
-
clearCacheLists
private void clearCacheLists()Clear cache list members.
-