Class Difference
java.lang.Object
org.custommonkey.xmlunit.Difference
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDifference(int id, String description) Constructor for non-similar Difference instancesprotectedDifference(int id, String description, boolean recoverable) Constructor for similar Difference instancesprotectedDifference(Difference prototype, NodeDetail controlNodeDetail, NodeDetail testNodeDetail) Copy constructor using prototype Difference and encountered NodeDetails -
Method Summary
Modifier and TypeMethodDescriptionbooleanNow that Differences can be constructed from prototypes we need to be able to compare them to those in DifferenceConstantsintgetId()inthashCode()hashcode implementation to go with equals.booleanprotected voidsetRecoverable(boolean overrideValue) Allow the recoverable field value to be overridden.toString()
-
Constructor Details
-
Difference
Constructor for non-similar Difference instances- Parameters:
id-description-
-
Difference
Constructor for similar Difference instances- Parameters:
id-description-
-
Difference
Copy constructor using prototype Difference and encountered NodeDetails
-
-
Method Details
-
getId
public int getId()- Returns:
- the id
-
getDescription
- Returns:
- the description
-
isRecoverable
public boolean isRecoverable()- Returns:
- TRUE if the difference represents a similarity, FALSE otherwise
-
setRecoverable
protected void setRecoverable(boolean overrideValue) Allow the recoverable field value to be overridden. Used when an override DifferenceListener is used in conjunction with a DetailedDiff. -
getControlNodeDetail
- Returns:
- the NodeDetail from the piece of XML used as the control at the Node where this difference was encountered
-
getTestNodeDetail
- Returns:
- the NodeDetail from the piece of XML used as the test at the Node where this difference was encountered
-
equals
-
hashCode
-
toString
-