Package org.xmlunit.diff
Class DefaultConditionalSelectorBuilder.ConditionalSelector
java.lang.Object
org.xmlunit.diff.DefaultConditionalSelectorBuilder.ConditionalSelector
- All Implemented Interfaces:
ElementSelector
- Enclosing class:
DefaultConditionalSelectorBuilder
private static class DefaultConditionalSelectorBuilder.ConditionalSelector
extends Object
implements ElementSelector
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map
<Predicate<? super Element>, ElementSelector> private final ElementSelector
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ConditionalSelector
(Map<Predicate<? super Element>, ElementSelector> conditionalSelectors, ElementSelector defaultSelector) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canBeCompared
(Element controlElement, Element testElement) Determine whether the two elements from the control and test XML can be compared.
-
Field Details
-
conditionalSelectors
-
defaultSelector
-
-
Constructor Details
-
ConditionalSelector
private ConditionalSelector(Map<Predicate<? super Element>, ElementSelector> conditionalSelectors, ElementSelector defaultSelector)
-
-
Method Details
-
canBeCompared
Description copied from interface:ElementSelector
Determine whether the two elements from the control and test XML can be compared.- Specified by:
canBeCompared
in interfaceElementSelector
- Parameters:
controlElement
- element of the control XMLtestElement
- element of the test XML- Returns:
- true if the two elements can be compared
-