commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r554057 - /jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/BasicNodeSet.java
Date Fri, 06 Jul 2007 21:16:37 GMT
Author: mbenson
Date: Fri Jul  6 14:16:36 2007
New Revision: 554057

URL: http://svn.apache.org/viewvc?view=rev&rev=554057
Log:
convenient method to accumulate NodeSets

Modified:
    jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/BasicNodeSet.java

Modified: jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/BasicNodeSet.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/BasicNodeSet.java?view=diff&rev=554057&r1=554056&r2=554057
==============================================================================
--- jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/BasicNodeSet.java
(original)
+++ jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/BasicNodeSet.java
Fri Jul  6 14:16:36 2007
@@ -35,7 +35,12 @@
         pointers.add(pointer);
         readOnlyPointers = null;
     }
-    
+
+    public void add(NodeSet nodeSet) {
+        pointers.addAll(nodeSet.getPointers());
+        readOnlyPointers = null;
+    }
+
     public void remove(Pointer pointer) {
         pointers.remove(pointer);
         readOnlyPointers = null;



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message