public class ComparisonListenerSupport extends Object
ComparisonListeners so it can be
reused by different implementations of DifferenceEngine.| Constructor and Description |
|---|
ComparisonListenerSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
addComparisonListener(ComparisonListener l)
Registers a listener that is notified of each comparison.
|
void |
addDifferenceListener(ComparisonListener l)
Registers a listener that is notified of each comparison with
outcome other than
ComparisonResult.EQUAL. |
void |
addMatchListener(ComparisonListener l)
Registers a listener that is notified of each comparison with
outcome
ComparisonResult.EQUAL. |
void |
fireComparisonPerformed(Comparison comparison,
ComparisonResult outcome)
Propagates the result of a comparision to all registered
listeners.
|
public void addComparisonListener(ComparisonListener l)
l - the listener to addpublic void addMatchListener(ComparisonListener l)
ComparisonResult.EQUAL.l - the listener to addpublic void addDifferenceListener(ComparisonListener l)
ComparisonResult.EQUAL.l - the listener to addpublic void fireComparisonPerformed(Comparison comparison, ComparisonResult outcome)
comparison - the comparisonoutcome - the result of the comparisonCopyright © 2001–2025 XMLUnit. All rights reserved.