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.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the specified NodeSet to this NodeSet.voidAdd a pointer to this NodeSet.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.voidRemove a pointer from this NodeSet.toString()
-
Constructor Details
-
BasicNodeSet
public BasicNodeSet()Constructs a new instance.
-
-
Method Details
-
add
Add the specified NodeSet to this NodeSet.- Parameters:
nodeSet- to add
-
add
Add a pointer to this NodeSet.- Parameters:
pointer- to add
-
getNodes
Description copied from interface:NodeSetReturns a list of nodes. -
getPointers
Description copied from interface:NodeSetReturns a list of pointers for all nodes in the set.- Specified by:
getPointersin interfaceNodeSet- Returns:
- List
-
getValues
Description copied from interface:NodeSetReturns a list of values of all contained pointers. -
remove
Remove a pointer from this NodeSet.- Parameters:
pointer- to remove
-
toString
-