Package org.xmlunit.diff
Class NodeFilters
java.lang.Object
org.xmlunit.diff.NodeFilters
Common NodeFilter implementations.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionsatifiesAll
(Predicate<Node>... predicates) Accepts nodes that are accepted by all given filters.satifiesAny
(Predicate<Node>... predicates) Accepts nodes that are accepted by at least on of the given filters.
-
Field Details
-
Default
Suppresses document-type and XML declaration nodes.This is the default used by
AbstractDifferenceEngine
and thusDOMDifferenceEngine
. -
AcceptAll
Accepts all nodes.- Since:
- XMLUnit 2.6.0
-
-
Method Details
-
satifiesAll
Accepts nodes that are accepted by all given filters.This short-circuits the given list of predicates and returns
false
as soon as the first predicate does.- Parameters:
predicates
- predicates to test- Returns:
- combined predicates
- Since:
- XMLUnit 2.9.0
-
satifiesAny
Accepts nodes that are accepted by at least on of the given filters.This short-circuits the given list of predicates and returns
true
as soon as the first predicate does.- Parameters:
predicates
- predicates to test- Returns:
- combined predicates
- Since:
- XMLUnit 2.9.0
-