public final class NodeFilters extends Object
| Modifier and Type | Field and Description |
|---|---|
static Predicate<Node> |
AcceptAll
Accepts all nodes.
|
static Predicate<Node> |
Default
Suppresses document-type and XML declaration nodes.
|
| Modifier and Type | Method and Description |
|---|---|
static Predicate<Node> |
satifiesAll(Predicate<Node>... predicates)
Accepts nodes that are accepted by all given filters.
|
static Predicate<Node> |
satifiesAny(Predicate<Node>... predicates)
Accepts nodes that are accepted by at least on of the given filters.
|
public static final Predicate<Node> Default
This is the default used by AbstractDifferenceEngine
and thus DOMDifferenceEngine.
public static Predicate<Node> satifiesAll(Predicate<Node>... predicates)
This short-circuits the given list of predicates and returns false as soon as the first predicate
does.
predicates - predicates to testpublic static Predicate<Node> satifiesAny(Predicate<Node>... predicates)
This short-circuits the given list of predicates and returns true as soon as the first predicate
does.
predicates - predicates to testCopyright © 2001–2025 XMLUnit. All rights reserved.