Uses of Interface
org.xmlunit.util.Predicate
-
Packages that use Predicate Package Description org.xmlunit.assertj AssertJ assertions on top of XMLUnit's core.org.xmlunit.builder Provides fluent builders for core parts of XMLUnit.org.xmlunit.diff Contains XMLUnitDifferenceEngine
that is at the heart of all comparisons as well as supporting interfaces and implementations.org.xmlunit.matchers Hamcrest matchers on top of XMLUnit's core.org.xmlunit.util Internal utilities hiding the differences between .NET and Java implementations. -
-
Uses of Predicate in org.xmlunit.assertj
Methods in org.xmlunit.assertj with parameters of type Predicate Modifier and Type Method Description CompareAssert
CompareAssert. withAttributeFilter(Predicate<org.w3c.dom.Attr> attributeFilter)
Registers a filter for attributes.CompareAssert
CompareAssert. withNodeFilter(Predicate<org.w3c.dom.Node> nodeFilter)
Registers a filter for nodes. -
Uses of Predicate in org.xmlunit.builder
Fields in org.xmlunit.builder declared as Predicate Modifier and Type Field Description private Predicate<org.w3c.dom.Attr>
DiffBuilder. attributeFilter
private Predicate<org.w3c.dom.Node>
DiffBuilder. nodeFilter
Methods in org.xmlunit.builder with parameters of type Predicate Modifier and Type Method Description DiffBuilder
DiffBuilder. withAttributeFilter(Predicate<org.w3c.dom.Attr> attributeFilter)
Registers a filter for attributes.D
DifferenceEngineConfigurer. withAttributeFilter(Predicate<org.w3c.dom.Attr> attributeFilter)
Registers a filter for attributes.DiffBuilder
DiffBuilder. withNodeFilter(Predicate<org.w3c.dom.Node> nodeFilter)
Registers a filter for nodes.D
DifferenceEngineConfigurer. withNodeFilter(Predicate<org.w3c.dom.Node> nodeFilter)
Registers a filter for nodes. -
Uses of Predicate in org.xmlunit.diff
Classes in org.xmlunit.diff that implement Predicate Modifier and Type Class Description private static class
ElementSelectors.CanBeComparedPredicate
Fields in org.xmlunit.diff declared as Predicate Modifier and Type Field Description static Predicate<org.w3c.dom.Node>
NodeFilters. AcceptAll
Accepts all nodes.private Predicate<org.w3c.dom.Attr>
AbstractDifferenceEngine. attributeFilter
static Predicate<org.w3c.dom.Node>
NodeFilters. Default
Suppresses document-type and XML declaration nodes.private Predicate<org.w3c.dom.Node>
AbstractDifferenceEngine. nodeFilter
private Predicate<? super org.w3c.dom.Element>
DefaultConditionalSelectorBuilder. pendingCondition
Fields in org.xmlunit.diff with type parameters of type Predicate Modifier and Type Field Description private java.util.Map<Predicate<? super org.w3c.dom.Element>,ElementSelector>
DefaultConditionalSelectorBuilder.ConditionalSelector. conditionalSelectors
private java.util.Map<Predicate<? super org.w3c.dom.Element>,ElementSelector>
DefaultConditionalSelectorBuilder. conditionalSelectors
Methods in org.xmlunit.diff that return Predicate Modifier and Type Method Description (package private) static Predicate<org.w3c.dom.Element>
ElementSelectors. elementNamePredicate(java.lang.String expectedName)
(package private) static Predicate<org.w3c.dom.Element>
ElementSelectors. elementNamePredicate(javax.xml.namespace.QName expectedName)
protected Predicate<org.w3c.dom.Attr>
AbstractDifferenceEngine. getAttributeFilter()
Provides access to the configured ComparisonController.protected Predicate<org.w3c.dom.Node>
AbstractDifferenceEngine. getNodeFilter()
Provides access to the configured ComparisonController.Methods in org.xmlunit.diff with parameters of type Predicate Modifier and Type Method Description static ElementSelector
ElementSelectors. conditionalSelector(Predicate<? super org.w3c.dom.Element> predicate, ElementSelector es)
Applies the wrapped ElementSelector's logic if and only if the control element matches the given predicate.void
AbstractDifferenceEngine. setAttributeFilter(Predicate<org.w3c.dom.Attr> af)
void
DifferenceEngine. setAttributeFilter(Predicate<org.w3c.dom.Attr> attributeFilter)
Sets the optional strategy that decides which attributes to consider and which to ignore during comparison.void
AbstractDifferenceEngine. setNodeFilter(Predicate<org.w3c.dom.Node> nf)
void
DifferenceEngine. setNodeFilter(Predicate<org.w3c.dom.Node> nodeFilter)
Sets the optional strategy that decides which nodes to consider and which to ignore during comparison.ElementSelectors.ConditionalSelectorBuilderThen
DefaultConditionalSelectorBuilder. when(Predicate<? super org.w3c.dom.Element> predicate)
ElementSelectors.ConditionalSelectorBuilderThen
ElementSelectors.ConditionalSelectorBuilder. when(Predicate<? super org.w3c.dom.Element> predicate)
Sets up a conditional ElementSelector.Constructor parameters in org.xmlunit.diff with type arguments of type Predicate Constructor Description ConditionalSelector(java.util.Map<Predicate<? super org.w3c.dom.Element>,ElementSelector> conditionalSelectors, ElementSelector defaultSelector)
-
Uses of Predicate in org.xmlunit.matchers
Classes in org.xmlunit.matchers that implement Predicate Modifier and Type Class Description private static class
ValidationMatcher.HasSystemIdPredicate
Methods in org.xmlunit.matchers with parameters of type Predicate Modifier and Type Method Description CompareMatcher
CompareMatcher. withAttributeFilter(Predicate<org.w3c.dom.Attr> attributeFilter)
CompareMatcher
CompareMatcher. withNodeFilter(Predicate<org.w3c.dom.Node> nodeFilter)
-
Uses of Predicate in org.xmlunit.util
Classes in org.xmlunit.util that implement Predicate Modifier and Type Class Description class
IsNullPredicate
A function that tests whether an object is null.Fields in org.xmlunit.util declared as Predicate Modifier and Type Field Description private Predicate<? super T>
Linqy.FilteringIterator. filter
Methods in org.xmlunit.util with parameters of type Predicate Modifier and Type Method Description static <T> boolean
Linqy. all(java.lang.Iterable<T> sequence, Predicate<? super T> predicate)
Determines whether a given predicate holds true for all elements.static <T> boolean
Linqy. any(java.lang.Iterable<T> sequence, Predicate<? super T> predicate)
Determines whether a given predicate holds true for at least one element.static <T> java.lang.Iterable<T>
Linqy. filter(java.lang.Iterable<T> sequence, Predicate<? super T> filter)
Exclude all elements from an iterable that don't match a given predicate.Constructors in org.xmlunit.util with parameters of type Predicate Constructor Description FilteringIterator(java.util.Iterator<T> i, Predicate<? super T> filter)
-