public class ComparisonListenerSupport extends Object
ComparisonListener
s 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)
public void addMatchListener(ComparisonListener l)
ComparisonResult.EQUAL
.public void addDifferenceListener(ComparisonListener l)
ComparisonResult.EQUAL
.public void fireComparisonPerformed(Comparison comparison, ComparisonResult outcome)
Copyright © 2001–2016 XMLUnit. All rights reserved.