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.Listnodesprivate java.util.Listpointersprivate java.util.ListreadOnlyPointersprivate java.util.Listvalues
-
Constructor Summary
Constructors Constructor Description BasicNodeSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(NodeSet nodeSet)Add the specified NodeSet to this NodeSet.voidadd(Pointer pointer)Add a pointer to this NodeSet.private voidclearCacheLists()Clear cache list members.java.util.ListgetNodes()Returns a list of nodes.java.util.ListgetPointers()Returns a list of pointers for all nodes in the set.java.util.ListgetValues()Returns a list of values of all contained pointers.voidremove(Pointer pointer)Remove a pointer from this NodeSet.java.lang.StringtoString()
-
-
-
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:NodeSetReturns a list of pointers for all nodes in the set.- Specified by:
getPointersin interfaceNodeSet- Returns:
- List
-
getNodes
public java.util.List getNodes()
Description copied from interface:NodeSetReturns a list of nodes.
-
getValues
public java.util.List getValues()
Description copied from interface:NodeSetReturns a list of values of all contained pointers.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
clearCacheLists
private void clearCacheLists()
Clear cache list members.
-
-