Class ElementNameQualifier

    • Constructor Detail

      • ElementNameQualifier

        public ElementNameQualifier()
    • Method Detail

      • qualifyForComparison

        public boolean qualifyForComparison​(Element control,
                                            Element test)
        Determine whether two elements qualify for further Difference comparison.
        Specified by:
        qualifyForComparison in interface ElementQualifier
        Parameters:
        control - an Element from the control XML NodeList
        test - an Element from the test XML NodeList
        Returns:
        true if the two elements qualify for further comparison based on their similar namespace URI and non-namespaced tag name, false otherwise
      • equalsNamespace

        protected boolean equalsNamespace​(Node control,
                                          Node test)
        Determine whether two nodes are defined by the same namespace URI
        Parameters:
        control - control node
        test - test node
        Returns:
        true if the two nodes are both defined by the same namespace URI (including the default - empty - namespace), false otherwise
      • getNonNamespacedNodeName

        protected String getNonNamespacedNodeName​(Node node)
        Strip any namespace information off a node name
        Parameters:
        node - node
        Returns:
        the localName if the node is namespaced, or the name otherwise