Package com._1c.g5.v8.dt.compare.model
Interface IComparedElement
- 
- All Known Subinterfaces:
- ICollectionPartialNode,- IDirectPartialModelNode,- IMergeRulePartialModelNode,- INodeWithAddibleChildren,- IOrderMergeRulePartialModelNode,- IPartialEqualFeatureNode,- IPartialEqualNode,- IPartialFeatureNode,- IPartialListElementNode,- IPartialModelNode
 - All Known Implementing Classes:
- AbstractDirectPartialModelNode,- AbstractEqualNodeWithChildren,- AbstractNodeWithLabels,- AbstractNodeWithLabelsAndChildren,- AbstractPartialModelNode,- AbstractPartialModelNodeWithChildren,- EmfFeatureNodeWithChildren,- EmfFeatureTerminalNode,- EqualEmfFeatureNodeWithChildren,- EqualEmfFeatureTerminalNode,- EqualListElementNodeWithChildren,- EqualListElementTerminalNode,- EqualReferenceListElementTerminalNode,- ExternalPropertyPartialModelNode,- ListElementNodeWithChildren,- ListElementTerminalNode,- ProjectPartialModelNode,- RootPartialModelNode,- VirtualFolderPartialModelNode
 
 public interface IComparedElementAn object containing the results of comparison of matched objects it hosts.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasChanged(ComparisonSide side1, ComparisonSide side2)Returnstrueif compared objects on the specified sides have changed properties or elements.booleanhasDifferences(ComparisonSide side1, ComparisonSide side2)Returnstrueif compared objects on the specified sides are different, i.e.booleanhasDoubleChanges()Returnstrueif the compared objects have at least one property that was changed from the corresponding property of the common ancestor object both in the main and in the other objects.booleanhasOnlyOnOneSide(ComparisonSide side1, ComparisonSide side2)Returnstrueif the compared object is present on the specified first side, and absent on the specified other side.booleanhasOrderChanged(ComparisonSide side1, ComparisonSide side2)Returnstrueif the compared object's order in its parent collection was changed between the specified sides.booleanhasPotentialMergeProblems()Tells whether the compared element has potential problems that could break a project after the merge.booleanhasUnchanged(ComparisonSide side1, ComparisonSide side2)Returnstrueif compared objects on the specified sides have unchanged properties or elements.
 
- 
- 
- 
Method Detail- 
hasDifferencesboolean hasDifferences(ComparisonSide side1, ComparisonSide side2) Returnstrueif compared objects on the specified sides are different, i.e. they have changes or one of them is absent.- Parameters:
- side1- the first side of the comparison direction, not- null
- side2- the second side of the comparison direction, not- null
- Returns:
- trueif the compared objects are different
 
 - 
hasChangedboolean hasChanged(ComparisonSide side1, ComparisonSide side2) Returnstrueif compared objects on the specified sides have changed properties or elements. This implies that the compared objects must be present on both specified sides.- Parameters:
- side1- the first side of the comparison direction, not- null
- side2- the second side of the comparison direction, not- null
- Returns:
- trueif the compared objects have changed properties
 
 - 
hasUnchangedboolean hasUnchanged(ComparisonSide side1, ComparisonSide side2) Returnstrueif compared objects on the specified sides have unchanged properties or elements. This implies that the compared objects must be present on both specified sides.- Parameters:
- side1- the first side of the comparison direction, not- null
- side2- the second side of the comparison direction, not- null
- Returns:
- trueif the compared objects have changed properties.
 
 - 
hasOrderChangedboolean hasOrderChanged(ComparisonSide side1, ComparisonSide side2) Returnstrueif the compared object's order in its parent collection was changed between the specified sides. This implies that the compared objects must be present on both specified sides.- Parameters:
- side1- the first side of the comparison direction, not- null
- side2- the second side of the comparison direction, not- null
- Returns:
- trueif the compared object's order was changed
 
 - 
hasOnlyOnOneSideboolean hasOnlyOnOneSide(ComparisonSide side1, ComparisonSide side2) Returnstrueif the compared object is present on the specified first side, and absent on the specified other side.- Parameters:
- side1- the first side of the comparison direction, not- null
- side2- the second side of the comparison direction, not- null
- Returns:
- trueif the compared object is present on- side1and absent on- side2
 
 - 
hasDoubleChangesboolean hasDoubleChanges() Returnstrueif the compared objects have at least one property that was changed from the corresponding property of the common ancestor object both in the main and in the other objects. This flag is only relevant for three-way nodes.- Returns:
- trueif the node has properties with double changes or a child node with this flag
 
 - 
hasPotentialMergeProblemsboolean hasPotentialMergeProblems() Tells whether the compared element has potential problems that could break a project after the merge.- Returns:
- trueif have potential merge problems,- falseotherwise
 
 
- 
 
-