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 TypeMethodDescriptionvoid
Add the specified NodeSet to this NodeSet.void
Add 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.void
Remove 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:NodeSet
Returns a list of nodes. -
getPointers
Description copied from interface:NodeSet
Returns a list of pointers for all nodes in the set.- Specified by:
getPointers
in interfaceNodeSet
- Returns:
- List
-
getValues
Description copied from interface:NodeSet
Returns a list of values of all contained pointers. -
remove
Remove a pointer from this NodeSet.- Parameters:
pointer
- to remove
-
toString
-