public class Difference extends Object
NodeDetail| Modifier | Constructor and Description |
|---|---|
protected |
Difference(Difference prototype,
NodeDetail controlNodeDetail,
NodeDetail testNodeDetail)
Copy constructor using prototype Difference and
encountered NodeDetails
|
protected |
Difference(int id,
String description)
Constructor for non-similar Difference instances
|
protected |
Difference(int id,
String description,
boolean recoverable)
Constructor for similar or non-similar Difference instances
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Now that Differences can be constructed from prototypes
we need to be able to compare them to those in DifferenceConstants
|
NodeDetail |
getControlNodeDetail() |
String |
getDescription() |
int |
getId() |
NodeDetail |
getTestNodeDetail() |
int |
hashCode()
hashcode implementation to go with equals.
|
boolean |
isRecoverable() |
protected void |
setRecoverable(boolean overrideValue)
Allow the recoverable field value to be overridden.
|
String |
toString() |
protected Difference(int id,
String description)
id - type of differencedescription - description of the differenceprotected Difference(int id,
String description,
boolean recoverable)
id - type of differencedescription - description of the differencerecoverable - whether the difference represents a similarityprotected Difference(Difference prototype, NodeDetail controlNodeDetail, NodeDetail testNodeDetail)
prototype - the difference to copy fromcontrolNodeDetail - details of the control nodetestNodeDetail - details of the test nodepublic int getId()
public String getDescription()
public boolean isRecoverable()
protected void setRecoverable(boolean overrideValue)
overrideValue - whether the difference represents a similaritypublic NodeDetail getControlNodeDetail()
public NodeDetail getTestNodeDetail()
public boolean equals(Object other)
public int hashCode()
Copyright © 2001–2025 XMLUnit. All rights reserved.