public class XPathSieve extends FilterIterator
FilterIterator implementing the
XPath Filtering behaviour as specified by the W3C recommendation
XML-Signature
Syntax and Processing.
NOTE: The input Iterator MUST provide the
Nodes of the input node-set in document order (according
to XML Path Language
(XPath) Version 1.0, Section 5 ) with the following weakening: The order
of the namespace and attribute child nodes of an element may be arbitrary.
| Modifier and Type | Field and Description |
|---|---|
protected XPathEvaluator |
evaluator_ |
iterator_, nextObj_| Constructor and Description |
|---|
XPathSieve(Iterator iterator,
String xPathExpr,
Node ownerNode,
Map additionalNSPrefixes,
DOMCryptoContext context) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
skip(Object obj)
Returns
true if the given obj ect should NOT be
returned by the FilterIterator.next()method, otherwise returns false
. |
hasNext, next, removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected XPathEvaluator evaluator_
public XPathSieve(Iterator iterator, String xPathExpr, Node ownerNode, Map additionalNSPrefixes, DOMCryptoContext context) throws XPathException
iterator - xPathExpr - ownerNode - additionalNSPrefixes - context - XPathExceptionpublic boolean skip(Object obj) throws SkipException
FilterIteratortrue if the given obj ect should NOT be
returned by the FilterIterator.next()method, otherwise returns false
.
Overwrite this method to implement specific filtering of Nodes.
skip in class FilterIteratorobj - the object to be testedtrue if the object should be skipped,
false otherwiseSkipException - A runtime exception wrapping around XPathException which should
not occur in normal operation.FilterIterator.skip(java.lang.Object)© 2002-2005 IAIK, © 2004, 2006 - 2019 Stiftung SIC