Uses of Interface
org.xmlunit.util.Predicate
Packages that use Predicate
Package
Description
AssertJ 3.x assertions on top of XMLUnit's core.
Provides fluent builders for core parts of XMLUnit.
Contains XMLUnit
DifferenceEngine
that is
at the heart of all comparisons as well as supporting interfaces
and implementations.Hamcrest matchers on top of XMLUnit's core.
Internal utilities hiding the differences between .NET and Java
implementations.
-
Uses of Predicate in org.xmlunit.assertj3
Methods in org.xmlunit.assertj3 with parameters of type PredicateModifier and TypeMethodDescriptionCompareAssert.withAttributeFilter
(Predicate<Attr> attributeFilter) Registers a filter for attributes.CompareAssert.withNodeFilter
(Predicate<Node> nodeFilter) Registers a filter for nodes. -
Uses of Predicate in org.xmlunit.builder
Fields in org.xmlunit.builder declared as PredicateMethods in org.xmlunit.builder with parameters of type PredicateModifier and TypeMethodDescriptionDiffBuilder.withAttributeFilter
(Predicate<Attr> attributeFilter) Registers a filter for attributes.DifferenceEngineConfigurer.withAttributeFilter
(Predicate<Attr> attributeFilter) Registers a filter for attributes.DiffBuilder.withNodeFilter
(Predicate<Node> nodeFilter) Registers a filter for nodes.DifferenceEngineConfigurer.withNodeFilter
(Predicate<Node> nodeFilter) Registers a filter for nodes. -
Uses of Predicate in org.xmlunit.diff
Classes in org.xmlunit.diff that implement PredicateFields in org.xmlunit.diff declared as PredicateModifier and TypeFieldDescriptionNodeFilters.AcceptAll
Accepts all nodes.AbstractDifferenceEngine.attributeFilter
NodeFilters.Default
Suppresses document-type and XML declaration nodes.AbstractDifferenceEngine.nodeFilter
DefaultConditionalSelectorBuilder.pendingCondition
Fields in org.xmlunit.diff with type parameters of type PredicateModifier and TypeFieldDescriptionprivate final Map
<Predicate<? super Element>, ElementSelector> DefaultConditionalSelectorBuilder.ConditionalSelector.conditionalSelectors
private final Map
<Predicate<? super Element>, ElementSelector> DefaultConditionalSelectorBuilder.conditionalSelectors
Methods in org.xmlunit.diff that return PredicateModifier and TypeMethodDescriptionElementSelectors.elementNamePredicate
(String expectedName) ElementSelectors.elementNamePredicate
(QName expectedName) AbstractDifferenceEngine.getAttributeFilter()
Provides access to the configured attribute filter.AbstractDifferenceEngine.getNodeFilter()
Provides access to the configured nod filter.NodeFilters.satifiesAll
(Predicate<Node>... predicates) Accepts nodes that are accepted by all given filters.NodeFilters.satifiesAny
(Predicate<Node>... predicates) Accepts nodes that are accepted by at least on of the given filters.Methods in org.xmlunit.diff with parameters of type PredicateModifier and TypeMethodDescriptionstatic final ElementSelector
ElementSelectors.byNameAndAllAttributes
(Predicate<Attr> attributeFilter) Elements with the same local name (and namespace URI - if any) and attribute values for all attributes can be compared.static ElementSelector
ElementSelectors.conditionalSelector
(Predicate<? super Element> predicate, ElementSelector es) Applies the wrapped ElementSelector's logic if and only if the control element matches the given predicate.NodeFilters.satifiesAll
(Predicate<Node>... predicates) Accepts nodes that are accepted by all given filters.NodeFilters.satifiesAny
(Predicate<Node>... predicates) Accepts nodes that are accepted by at least on of the given filters.void
AbstractDifferenceEngine.setAttributeFilter
(Predicate<Attr> af) void
DifferenceEngine.setAttributeFilter
(Predicate<Attr> attributeFilter) Sets the optional strategy that decides which attributes to consider and which to ignore during comparison.void
AbstractDifferenceEngine.setNodeFilter
(Predicate<Node> nf) void
DifferenceEngine.setNodeFilter
(Predicate<Node> nodeFilter) Sets the optional strategy that decides which nodes to consider and which to ignore during comparison.Sets up a conditional ElementSelector.Constructor parameters in org.xmlunit.diff with type arguments of type PredicateModifierConstructorDescriptionprivate
ConditionalSelector
(Map<Predicate<? super Element>, ElementSelector> conditionalSelectors, ElementSelector defaultSelector) -
Uses of Predicate in org.xmlunit.matchers
Classes in org.xmlunit.matchers that implement PredicateMethods in org.xmlunit.matchers with parameters of type PredicateModifier and TypeMethodDescriptionCompareMatcher.withAttributeFilter
(Predicate<Attr> attributeFilter) CompareMatcher.withNodeFilter
(Predicate<Node> nodeFilter) -
Uses of Predicate in org.xmlunit.util
Classes in org.xmlunit.util that implement PredicateModifier and TypeClassDescriptionclass
A function that tests whether an object is null.Fields in org.xmlunit.util declared as PredicateMethods in org.xmlunit.util with parameters of type PredicateModifier and TypeMethodDescriptionstatic <T> boolean
Determines whether a given predicate holds true for all elements.static <T> boolean
Determines whether a given predicate holds true for at least one element.static <T> Iterable
<T> Exclude all elements from an iterable that don't match a given predicate.Nodes.getAttributes
(Node n, Predicate<Attr> attributeFilter) Obtains an element's attributes as Map.Constructors in org.xmlunit.util with parameters of type PredicateModifierConstructorDescriptionprivate
FilteringIterator
(Iterator<T> i, Predicate<? super T> filter)