Package org.custommonkey.xmlunit
Interface DifferenceEngineContract
-
- All Known Implementing Classes:
DifferenceEngine
,NewDifferenceEngine
public interface DifferenceEngineContract
The pieces of DifferenceEngine's API used by Diff.This interface allows Diff to switch between
DifferenceEngine
andNewDifferenceEngine
at will.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
setMatchTracker
void setMatchTracker(MatchTracker matchTracker)
- Parameters:
matchTracker
- the instance that is notified on each successful match. May be null.
-
compare
void compare(org.w3c.dom.Node control, org.w3c.dom.Node test, DifferenceListener listener, ElementQualifier elementQualifier)
Entry point for Node comparison testing.- Parameters:
control
- Control XML to comparetest
- Test XML to comparelistener
- Notified of anydifferences
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.
-
-