Class NodeDescription
java.lang.Object
com._1c.g5.v8.dt.internal.testing.compare.NodeDescription
Node description to be comparable between different comparison sessions.
Each node may have unique description. Descriptions can represent any node in the comparison tree of any depth.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates empty description.NodeDescription(NodeDescription parentDescription, ComparisonNode node, ComparisonContext context) Creates description for the specified comparison node. -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.eclipse.emf.ecore.EStructuralFeatureGets feature the node related to.Gets node's main symlink.Gets node's other symlink.Gets parent description.getSide()Gets side the node related to.inthashCode()booleanTells whether the description relates to one-side comparison node.toString()
-
Constructor Details
-
NodeDescription
public NodeDescription()Creates empty description. Useful for root comparison nodes. -
NodeDescription
public NodeDescription(NodeDescription parentDescription, ComparisonNode node, ComparisonContext context) Creates description for the specified comparison node.- Parameters:
parentDescription- the parent description, cannot benullnode- the comparison node to create description for, cannot benullcontext- the comparison context, cannot benull
-
-
Method Details
-
getParentDescription
Gets parent description.- Returns:
- the parent description, may be
null
-
getSide
Gets side the node related to.- Returns:
- the side, may be
nullfor both-sides
-
isOneSide
public boolean isOneSide()Tells whether the description relates to one-side comparison node.- Returns:
truefor one-side node,falseotherwise
-
getFeature
public org.eclipse.emf.ecore.EStructuralFeature getFeature()Gets feature the node related to.- Returns:
- the feature or
nullif the node is not related to any feature
-
getMainSymlink
Gets node's main symlink.- Returns:
- the main symlink, may be
null
-
getOtherSymlink
Gets node's other symlink.- Returns:
- the other symlink, may be
null
-
toString
-
hashCode
public int hashCode() -
equals
-