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 java.lang.Object implements ElementSelector
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<Predicate<? super org.w3c.dom.Element>,ElementSelector>conditionalSelectorsprivate ElementSelectordefaultSelector
-
Constructor Summary
Constructors Modifier Constructor Description privateConditionalSelector(java.util.Map<Predicate<? super org.w3c.dom.Element>,ElementSelector> conditionalSelectors, ElementSelector defaultSelector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanBeCompared(org.w3c.dom.Element controlElement, org.w3c.dom.Element testElement)Determine whether the two elements from the control and test XML can be compared.
-
-
-
Field Detail
-
conditionalSelectors
private final java.util.Map<Predicate<? super org.w3c.dom.Element>,ElementSelector> conditionalSelectors
-
defaultSelector
private final ElementSelector defaultSelector
-
-
Constructor Detail
-
ConditionalSelector
private ConditionalSelector(java.util.Map<Predicate<? super org.w3c.dom.Element>,ElementSelector> conditionalSelectors, ElementSelector defaultSelector)
-
-
Method Detail
-
canBeCompared
public boolean canBeCompared(org.w3c.dom.Element controlElement, org.w3c.dom.Element testElement)Description copied from interface:ElementSelectorDetermine whether the two elements from the control and test XML can be compared.- Specified by:
canBeComparedin interfaceElementSelector
-
-