| java.lang.Object org.custommonkey.xmlunit.Difference
Difference | public class Difference (Code) | | 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
See Also: NodeDetail |
Difference | protected Difference(int id, String description)(Code) | | Constructor for non-similar Difference instances
Parameters: id - Parameters: description - |
Difference | protected Difference(int id, String description, boolean recoverable)(Code) | | Constructor for similar Difference instances
Parameters: id - Parameters: description - |
Difference | protected Difference(Difference prototype, NodeDetail controlNodeDetail, NodeDetail testNodeDetail)(Code) | | Copy constructor using prototype Difference and
encountered NodeDetails
|
equals | public boolean equals(Object other)(Code) | | Now that Differences can be constructed from prototypes
we need to be able to compare them to those in DifferenceConstants
|
getControlNodeDetail | public NodeDetail getControlNodeDetail()(Code) | | the NodeDetail from the piece of XML used as the control at the Node where this difference was encountered |
getDescription | public String getDescription()(Code) | | the description |
getId | public int getId()(Code) | | the id |
getTestNodeDetail | public NodeDetail getTestNodeDetail()(Code) | | the NodeDetail from the piece of XML used as the testat the Node where this difference was encountered |
hashCode | public int hashCode()(Code) | | hashcode implementation to go with equals.
|
isRecoverable | public boolean isRecoverable()(Code) | | TRUE if the difference represents a similarity, FALSE otherwise |
setRecoverable | protected void setRecoverable(boolean overrideValue)(Code) | | Allow the recoverable field value to be overridden.
Used when an override DifferenceListener is used in conjunction with
a DetailedDiff.
|
toString | public String toString()(Code) | | a basic representation of the object state and identityand if NodeDetail instances are populated append their details also |
|
|