public class NodeResult extends Object implements Serializable
Constructor and Description |
---|
NodeResult()
Default Constructor.
|
NodeResult(XNode controlNode,
XNode testNode,
Differences diff)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
XNode |
getControlNode()
Gets control Node.
|
Differences |
getDifferences()
Get Differences.
|
int |
getNumDifferences()
Gets number of Differences for given Nodes.
|
XNode |
getTestNode()
Gets Test Node.
|
boolean |
isExactMatch()
Checks if its an exact match.
|
boolean |
isMatch()
Checks if the NodeResult is a match, either by unique attribute.
|
boolean |
isUniqueAttrMatch()
Checks if unique Attribute matches.
|
static void |
main(String[] args)
Main method for debugging purpose only.
|
void |
setControlNode(XNode node)
Sets Control Node.
|
void |
setDifferences(Differences diff)
Sets Differences.
|
void |
setIfExactMatch(boolean flag)
Sets the flag if its an exact match.
|
void |
setTestNode(XNode node)
Sets Test Node.
|
void |
setUniqueAttrMatch(boolean flag)
Sets Unique Attribute match flag.
|
String |
toString()
Gets String representation of the Instance.
|
public NodeResult()
public NodeResult(XNode controlNode, XNode testNode, Differences diff)
controlNode
- the Control NodetestNode
- the test Nodediff
- the DifferencesDifferences
public XNode getTestNode()
public void setTestNode(XNode node)
public XNode getControlNode()
public void setControlNode(XNode node)
public Differences getDifferences()
Differences
public void setDifferences(Differences diff)
Differences
public boolean isUniqueAttrMatch()
public void setUniqueAttrMatch(boolean flag)
public boolean isExactMatch()
public void setIfExactMatch(boolean flag)
public boolean isMatch()
public int getNumDifferences()
public String toString()
public static void main(String[] args)
Copyright © 2016. All rights reserved.