Package org.apache.commons.jxpath
Class BasicNodeSet
- java.lang.Object
-
- org.apache.commons.jxpath.BasicNodeSet
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List
nodes
private java.util.List
pointers
private java.util.List
readOnlyPointers
private java.util.List
values
-
Constructor Summary
Constructors Constructor Description BasicNodeSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(NodeSet nodeSet)
Add the specified NodeSet to this NodeSet.void
add(Pointer pointer)
Add a pointer to this NodeSet.private void
clearCacheLists()
Clear cache list members.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)
Remove a pointer from this NodeSet.java.lang.String
toString()
-
-
-
Method Detail
-
add
public void add(Pointer pointer)
Add a pointer to this NodeSet.- Parameters:
pointer
- to add
-
add
public void add(NodeSet nodeSet)
Add the specified NodeSet to this NodeSet.- Parameters:
nodeSet
- to add
-
remove
public void remove(Pointer pointer)
Remove a pointer from this NodeSet.- Parameters:
pointer
- to remove
-
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 interfaceNodeSet
- Returns:
- List
-
getNodes
public java.util.List getNodes()
Description copied from interface:NodeSet
Returns a list of nodes.
-
getValues
public java.util.List getValues()
Description copied from interface:NodeSet
Returns a list of values of all contained pointers.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
clearCacheLists
private void clearCacheLists()
Clear cache list members.
-
-