org.custommonkey.xmlunit
public class Difference extends Object
See Also: NodeDetail
Constructor Summary | |
---|---|
protected | Difference(int id, String description)
Constructor for non-similar Difference instances |
protected | Difference(int id, String description, boolean recoverable)
Constructor for similar Difference instances |
protected | Difference(Difference prototype, NodeDetail controlNodeDetail, NodeDetail testNodeDetail)
Copy constructor using prototype Difference and
encountered NodeDetails |
Method Summary | |
---|---|
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() |
boolean | isRecoverable() |
protected void | setRecoverable(boolean overrideValue)
Allow the recoverable field value to be overridden.
|
String | toString() |
Parameters: id description
Parameters: id description
Returns: the NodeDetail from the piece of XML used as the control at the Node where this difference was encountered
Returns: the description
Returns: the id
Returns: the NodeDetail from the piece of XML used as the test at the Node where this difference was encountered
Returns: TRUE if the difference represents a similarity, FALSE otherwise
Returns: a basic representation of the object state and identity
and if NodeDetail
instances are populated append
their details also