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 SummaryConstructorsConstructorDescriptionCreates empty description.NodeDescription(NodeDescription parentDescription, ComparisonNode node, ComparisonContext context) Creates description for the specified comparison node.
- 
Method SummaryModifier 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- 
NodeDescriptionpublic NodeDescription()Creates empty description. Useful for root comparison nodes.
- 
NodeDescriptionpublic NodeDescription(NodeDescription parentDescription, ComparisonNode node, ComparisonContext context) Creates description for the specified comparison node.- Parameters:
- parentDescription- the parent description, cannot be- null
- node- the comparison node to create description for, cannot be- null
- context- the comparison context, cannot be- null
 
 
- 
- 
Method Details- 
getParentDescriptionGets parent description.- Returns:
- the parent description, may be null
 
- 
getSideGets side the node related to.- Returns:
- the side, may be nullfor both-sides
 
- 
isOneSidepublic boolean isOneSide()Tells whether the description relates to one-side comparison node.- Returns:
- truefor one-side node,- falseotherwise
 
- 
getFeaturepublic 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
 
- 
getMainSymlinkGets node's main symlink.- Returns:
- the main symlink, may be null
 
- 
getOtherSymlinkGets node's other symlink.- Returns:
- the other symlink, may be null
 
- 
toString
- 
hashCodepublic int hashCode()
- 
equals
 
-