|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.custommonkey.xmlunit.Difference
public class Difference
Value object that describes a difference between DOM Nodes using one of
the DifferenceConstants ID values and a NodeDetail instance.
Examples and more at xmlunit.sourceforge.net
NodeDetail
Constructor Summary | |
---|---|
protected |
Difference(Difference prototype,
NodeDetail controlNodeDetail,
NodeDetail testNodeDetail)
Copy constructor using prototype Difference and encountered NodeDetails |
protected |
Difference(int id,
java.lang.String description)
Constructor for non-similar Difference instances |
protected |
Difference(int id,
java.lang.String description,
boolean recoverable)
Constructor for similar Difference instances |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
Now that Differences can be constructed from prototypes we need to be able to compare them to those in DifferenceConstants |
NodeDetail |
getControlNodeDetail()
|
java.lang.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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected Difference(int id, java.lang.String description)
id
- description
- protected Difference(int id, java.lang.String description, boolean recoverable)
id
- description
- protected Difference(Difference prototype, NodeDetail controlNodeDetail, NodeDetail testNodeDetail)
Method Detail |
---|
public int getId()
public java.lang.String getDescription()
public boolean isRecoverable()
protected void setRecoverable(boolean overrideValue)
public NodeDetail getControlNodeDetail()
public NodeDetail getTestNodeDetail()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
NodeDetail
instances are populated append
their details also
|
XMLUnit is hosted by sourceforge.net |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |