Class NewDifferenceEngine.ElementQualifier2ElementSelector

  • All Implemented Interfaces:
    ElementSelector
    Enclosing class:
    NewDifferenceEngine

    public static class NewDifferenceEngine.ElementQualifier2ElementSelector
    extends java.lang.Object
    implements ElementSelector
    Adapts XMLUnit 1.x ComparisonQualifider to XMLUnit 2.x ElementSelector.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canBeCompared​(org.w3c.dom.Element controlElement, org.w3c.dom.Element testElement)
      Determine whether the two elements from the control and test XML can be compared.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ElementQualifier2ElementSelector

        public ElementQualifier2ElementSelector​(ElementQualifier eq)
        Parameters:
        eq - ElementQualifier to adapt
    • Method Detail

      • canBeCompared

        public boolean canBeCompared​(org.w3c.dom.Element controlElement,
                                     org.w3c.dom.Element testElement)
        Description copied from interface: ElementSelector
        Determine whether the two elements from the control and test XML can be compared.
        Specified by:
        canBeCompared in interface ElementSelector
        Parameters:
        controlElement - element of the control XML
        testElement - element of the test XML
        Returns:
        true if the two elements can be compared