public interface DifferenceEngineContract
This interface allows Diff to switch between DifferenceEngine
and NewDifferenceEngine
at will.
Modifier and Type | Method and Description |
---|---|
void |
compare(org.w3c.dom.Node control,
org.w3c.dom.Node test,
DifferenceListener listener,
ElementQualifier elementQualifier)
Entry point for Node comparison testing.
|
void |
setMatchTracker(MatchTracker matchTracker) |
void setMatchTracker(MatchTracker matchTracker)
matchTracker
- the instance that is notified on each
successful match. May be null.void compare(org.w3c.dom.Node control, org.w3c.dom.Node test, DifferenceListener listener, ElementQualifier elementQualifier)
control
- Control XML to comparetest
- Test XML to comparelistener
- Notified of any differences
detected
during node comparison testingelementQualifier
- Used to determine which elements qualify for
comparison e.g. when a node has repeated child elements that may occur
in any sequence and that sequence is not considered important.