Package org.custommonkey.xmlunit
Interface DifferenceListener
-
- All Known Implementing Classes:
CaseInsensitiveDifferenceListener,DetailedDiff,Diff,FloatingPointTolerantDifferenceListener,IgnoreTextAndAttributeValuesDifferenceListener,TextDifferenceListenerBase
public interface DifferenceListenerListener for callbacks from aDifferenceEngine comparison.
-
-
Field Summary
Fields Modifier and Type Field Description static intRETURN_ACCEPT_DIFFERENCEStandard return value for thedifferenceFoundmethod.static intRETURN_IGNORE_DIFFERENCE_NODES_IDENTICALOverride return value for thedifferenceFoundmethod.static intRETURN_IGNORE_DIFFERENCE_NODES_SIMILAROverride return value for thedifferenceFoundmethod.static intRETURN_UPGRADE_DIFFERENCE_NODES_DIFFERENTOverride return value for thedifferenceFoundmethod.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intdifferenceFound(Difference difference)Receive notification that 2 nodes are different.voidskippedComparison(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 Detail
-
RETURN_ACCEPT_DIFFERENCE
static final int RETURN_ACCEPT_DIFFERENCE
Standard return value for thedifferenceFoundmethod. Indicates that theDifferenceis interpreted as defined inDifferenceConstants.- See Also:
- Constant Field Values
-
RETURN_IGNORE_DIFFERENCE_NODES_IDENTICAL
static final int RETURN_IGNORE_DIFFERENCE_NODES_IDENTICAL
Override return value for thedifferenceFoundmethod. Indicates that the nodes identified as being different should be interpreted as being identical.- See Also:
- Constant Field Values
-
RETURN_IGNORE_DIFFERENCE_NODES_SIMILAR
static final int RETURN_IGNORE_DIFFERENCE_NODES_SIMILAR
Override return value for thedifferenceFoundmethod. Indicates that the nodes identified as being different should be interpreted as being similar.- See Also:
- Constant Field Values
-
RETURN_UPGRADE_DIFFERENCE_NODES_DIFFERENT
static final int RETURN_UPGRADE_DIFFERENCE_NODES_DIFFERENT
Override return value for thedifferenceFoundmethod. Indicates that the nodes identified as being similar should be interpreted as being different.- See Also:
- Constant Field Values
-
-
Method Detail
-
differenceFound
int differenceFound(Difference difference)
Receive notification that 2 nodes are different.- Parameters:
difference- a Difference instance as defined inDifferenceConstantsdescribing 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
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- Parameters:
control- the control node being comparedtest- the test node being compared- See Also:
DifferenceEngine
-
-