public abstract class Sets
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static SequenceIterator<NodeInfo> |
difference(SequenceIterator<NodeInfo> p1,
SequenceIterator<NodeInfo> p2)
Return the difference of two node-sets (interpreted as sequences of nodes that must be supplied
in document order)
|
static boolean |
hasSameNode(SequenceIterator<NodeInfo> p1,
SequenceIterator<NodeInfo> p2)
Determine whether two node-sets (interpreted as sequences of nodes that must be supplied
in document order) contain at least one node in common
|
static SequenceIterator<NodeInfo> |
intersection(SequenceIterator<NodeInfo> p1,
SequenceIterator<NodeInfo> p2)
Return the intersection of two node-sets (interpreted as sequences of nodes that must be supplied
in document order)
|
static SequenceIterator<?> |
leading(XPathContext context,
SequenceIterator<?> ns1,
SequenceIterator<?> ns2)
Find all the nodes in ns1 that are before the first node in ns2.
|
static SequenceIterator |
trailing(XPathContext context,
SequenceIterator<?> ns1,
SequenceIterator<?> ns2)
Find all the nodes in ns1 that are after the first node in ns2.
|
public static SequenceIterator<NodeInfo> intersection(SequenceIterator<NodeInfo> p1, SequenceIterator<NodeInfo> p2) throws XPathException
p1
- The first node-setp2
- The second node-setXPathException
public static SequenceIterator<NodeInfo> difference(SequenceIterator<NodeInfo> p1, SequenceIterator<NodeInfo> p2) throws XPathException
p1
- The first node-setp2
- The second node-setXPathException
public static boolean hasSameNode(SequenceIterator<NodeInfo> p1, SequenceIterator<NodeInfo> p2) throws XPathException
p1
- The first node-setp2
- The second node-setXPathException
public static SequenceIterator<?> leading(XPathContext context, SequenceIterator<?> ns1, SequenceIterator<?> ns2) throws XPathException
ns1
- The first node-setns2
- The second node-setXPathException
public static SequenceIterator trailing(XPathContext context, SequenceIterator<?> ns1, SequenceIterator<?> ns2) throws XPathException
ns1
- The first node-setns2
- The second node-setXPathException
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.