160161162163164165166167168169170
inter.setShouldCacheNodes(true); for (int i=0; i < ns1.getLength(); i++) { Node n = ns1.elementAt(i); if(ns2.contains(n)) inter.addElement(n); } return inter; } /**
184185186187188189190191192193194
diff.setShouldCacheNodes(true); for (int i = 0; i < ns1.getLength(); i++) { Node n = ns1.elementAt(i); if(!ns2.contains(n)) diff.addElement(n); } return diff; } /**
210211212213214215216217218219220
Node n = ns.elementAt(i); String key = DOMHelper.getNodeData(n); if (!stringTable.containsKey(key)) { stringTable.put(key, n); dist.addElement(n); } } return dist; }
201202203204205206207208209210211
for (int i = 0; i < ns1.getLength(); i++) { Node n = ns1.elementAt(i); if (ns2.contains(n)) inter.addElement(n); } return inter; }
235236237238239240241242243244245
for (int i = 0; i < ns1.getLength(); i++) { Node n = ns1.elementAt(i); if (!ns2.contains(n)) diff.addElement(n); } return diff; }
271272273274275276277278279280281
String key = myContext.toString(currNode); if (!stringTable.containsKey(key)) { stringTable.put(key, currNode); dist.addElement(currNode); } currNode = ni.nextNode(); } return dist;
213214215216217218219220221222223
for (int i = 0; i < ns.getLength(); i++) { Node n = ns.elementAt(i); double d = expCon.toNumber(n); if (d == high) highNodes.addElement(n); } return highNodes; } /**
254255256257258259260261262263
for (int i = 0; i < ns.getLength(); i++) { Node n = ns.elementAt(i); double d = expCon.toNumber(n); if (d == low) lowNodes.addElement(n); } return lowNodes; } }
130131132133134135136137138139140
for (int i = 0; i < ns1.getLength(); i++) { Node testNode = ns1.elementAt(i); if (DOMHelper.isNodeAfter(testNode, endNode) && !(DOMHelper.isNodeTheSame(testNode, endNode))) leadNodes.addElement(testNode); } return leadNodes; } /**
164165166167168169170171172173174
for (int i = 0; i < ns1.getLength(); i++) { Node testNode = ns1.elementAt(i); if (DOMHelper.isNodeAfter(startNode, testNode) && !(DOMHelper.isNodeTheSame(startNode, testNode))) trailNodes.addElement(testNode); } return trailNodes; } /**