public class Difference extends Object
the DifferenceConstants ID values and a XNode instance.
Examples and more at xmlunit.sourceforge.net
XNode
Modifier | Constructor and Description |
---|---|
protected |
Difference(Difference prototype,
XNode xControlNode,
XNode xTestNode)
Copy constructor using prototype Difference and.
|
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.
|
Modifier and Type | Method and Description |
---|---|
XNode |
getControlNodeDetail() |
String |
getDescription() |
int |
getId() |
XNode |
getTestNodeDetail() |
boolean |
isRecoverable() |
void |
setControlNodeDetail(XNode XNode)
Sets control Node detail.
|
void |
setId(int id) |
protected void |
setRecoverable(boolean overrideValue)
Allow the recoverable field value to be overridden.
|
void |
setTestNodeDetail(XNode XNode)
Sets test Node detail.
|
String |
toString() |
protected Difference(int id, String description)
id
- description
- protected Difference(int id, String description, boolean recoverable)
id
- description
- protected Difference(Difference prototype, XNode xControlNode, XNode xTestNode)
encountered NodeDetails
public int getId()
public void setId(int id)
public String getDescription()
public boolean isRecoverable()
protected void setRecoverable(boolean overrideValue)
Used when an override DifferenceListener is used in conjunction with
a DetailedDiff.
public XNode getControlNodeDetail()
at the Node where this difference was encountered
public void setControlNodeDetail(XNode XNode)
public XNode getTestNodeDetail()
at the Node where this difference was encountered
public void setTestNodeDetail(XNode XNode)
Copyright © 2018. All rights reserved.