Class NodeFilters


  • public final class NodeFilters
    extends Object
    Common NodeFilter implementations.
    • 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 false as 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 true as soon as the first predicate does.

        Parameters:
        predicates - predicates to test
        Returns:
        combined predicates
        Since:
        XMLUnit 2.9.0