Package org.xmlunit.diff
Class NodeFilters
- java.lang.Object
-
- org.xmlunit.diff.NodeFilters
-
public final class NodeFilters extends Object
Common NodeFilter implementations.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
Default
public static final Predicate<Node> Default
Suppresses document-type and XML declaration nodes.This is the default used by
AbstractDifferenceEngineand thusDOMDifferenceEngine.
-
-
Method Detail
-
satifiesAll
public static Predicate<Node> satifiesAll(Predicate<Node>... predicates)
Accepts nodes that are accepted by all given filters.This short-circuits the given list of predicates and returns
falseas soon as the first predicate does.- Parameters:
predicates- predicates to test- Returns:
- combined predicates
- Since:
- XMLUnit 2.9.0
-
satifiesAny
public static Predicate<Node> satifiesAny(Predicate<Node>... predicates)
Accepts nodes that are accepted by at least on of the given filters.This short-circuits the given list of predicates and returns
trueas soon as the first predicate does.- Parameters:
predicates- predicates to test- Returns:
- combined predicates
- Since:
- XMLUnit 2.9.0
-
-