Package org.custommonkey.xmlunit
Interface DifferenceListener
- All Known Implementing Classes:
CaseInsensitiveDifferenceListener
,DetailedDiff
,Diff
,FloatingPointTolerantDifferenceListener
,IgnoreTextAndAttributeValuesDifferenceListener
,TextDifferenceListenerBase
public interface DifferenceListener
Listener for callbacks from a
DifferenceEngine comparison
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Standard return value for thedifferenceFound
method.static final int
Override return value for thedifferenceFound
method.static final int
Override return value for thedifferenceFound
method.static final int
Override return value for thedifferenceFound
method. -
Method Summary
Modifier and TypeMethodDescriptionint
differenceFound
(Difference difference) Receive notification that 2 nodes are different.void
skippedComparison
(Node control, Node test) Receive notification that a comparison between 2 nodes has been skipped because the node types are not comparable by the DifferenceEngine
-
Field Details
-
RETURN_ACCEPT_DIFFERENCE
static final int RETURN_ACCEPT_DIFFERENCEStandard return value for thedifferenceFound
method. Indicates that theDifference
is interpreted as defined inDifferenceConstants
.- See Also:
-
RETURN_IGNORE_DIFFERENCE_NODES_IDENTICAL
static final int RETURN_IGNORE_DIFFERENCE_NODES_IDENTICALOverride return value for thedifferenceFound
method. Indicates that the nodes identified as being different should be interpreted as being identical.- See Also:
-
RETURN_IGNORE_DIFFERENCE_NODES_SIMILAR
static final int RETURN_IGNORE_DIFFERENCE_NODES_SIMILAROverride return value for thedifferenceFound
method. Indicates that the nodes identified as being different should be interpreted as being similar.- See Also:
-
RETURN_UPGRADE_DIFFERENCE_NODES_DIFFERENT
static final int RETURN_UPGRADE_DIFFERENCE_NODES_DIFFERENTOverride return value for thedifferenceFound
method. Indicates that the nodes identified as being similar should be interpreted as being different.- See Also:
-
-
Method Details
-
differenceFound
Receive notification that 2 nodes are different.- Parameters:
difference
- a Difference instance as defined inDifferenceConstants
describing the cause of the difference and containing the detail of the nodes that differ- Returns:
- int one of the RETURN_... constants describing how this difference was interpreted
-
skippedComparison
Receive notification that a comparison between 2 nodes has been skipped because the node types are not comparable by the DifferenceEngine- Parameters:
control
- the control node being comparedtest
- the test node being compared- See Also:
-