Package com._1c.g5.v8.dt.compare.model
Interface IComparedElement
- All Known Subinterfaces:
ICollectionPartialNode,IDirectPartialModelNode,IFragmentPartialNode,IMergeRulePartialModelNode,INodeWithAddibleChildren,IOrderMergeRulePartialModelNode,IPartialEqualFeatureNode,IPartialEqualNode,IPartialFeatureNode,IPartialListElementNode,IPartialModelNode,IPartialObjectRightNode,IPartialObjectRightsNode,IPartialRoleRightsNode,IPartialRoleTemplateNode
- All Known Implementing Classes:
AbstractDirectPartialModelNode,AbstractEqualNodeWithChildren,AbstractNodeWithLabels,AbstractNodeWithLabelsAndChildren,AbstractPartialModelNode,AbstractPartialModelNodeWithChildren,BslModuleSectionPartialModelNode,EmfFeatureNodeWithChildren,EmfFeatureTerminalNode,EqualEmfFeatureNodeWithChildren,EqualEmfFeatureTerminalNode,EqualFragmentPartialNode,EqualListElementNodeWithChildren,EqualListElementTerminalNode,EqualObjectRightsNodeWithChildren,EqualObjectRightTerminalNode,EqualReferenceListElementTerminalNode,EqualRoleRightsTerminalNode,EqualRoleTemplateTerminalNode,ExternalPropertyPartialModelNode,FragmentPartialNode,HtmlDocumentPageTerminalNode,ListElementNodeWithChildren,ListElementTerminalNode,ObjectRightsNodeWithChildren,ObjectRightTerminalNode,ProjectPartialModelNode,RoleRightsTerminalNode,RoleTemplateTerminalNode,RootPartialModelNode,VirtualFolderPartialModelNode
public interface IComparedElement
An object containing the results of comparison of matched objects it hosts.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhasChanged(ComparisonSide side1, ComparisonSide side2) Returnstrueif compared objects on the specified sides have changed properties or elements.booleanReturnstrueif the compared objects have at least one property that contains conflict changes between MAIN and OTHER relative the COMMON_ANCESTOR.booleanhasDifferences(ComparisonSide side1, ComparisonSide side2) Returnstrueif compared objects on the specified sides are different, i.e. they have changes or one of them is absent.booleanReturnstrueif the compared objects have at least one property that contains non-conflict changes between MAIN and OTHER relative the COMMON_ANCESTOR.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.booleanTells 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 Details
-
hasDifferences
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, notnullside2- the second side of the comparison direction, notnull- Returns:
trueif the compared objects are different
-
hasChanged
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, notnullside2- the second side of the comparison direction, notnull- Returns:
trueif the compared objects have changed properties
-
hasUnchanged
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, notnullside2- the second side of the comparison direction, notnull- Returns:
trueif the compared objects have changed properties.
-
hasOrderChanged
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, notnullside2- the second side of the comparison direction, notnull- Returns:
trueif the compared object's order was changed
-
hasOnlyOnOneSide
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, notnullside2- the second side of the comparison direction, notnull- Returns:
trueif the compared object is present onside1and absent onside2
-
hasConflictingChanges
boolean hasConflictingChanges()Returnstrueif the compared objects have at least one property that contains conflict changes between MAIN and OTHER relative the COMMON_ANCESTOR. This flag is only relevant for three-way nodes.- Returns:
trueif the node has properties with double (conflicting) changes or a child node with this flag
-
hasNonConflictingChanges
boolean hasNonConflictingChanges()Returnstrueif the compared objects have at least one property that contains non-conflict changes between MAIN and OTHER relative the COMMON_ANCESTOR. This flag is only relevant for three-way nodes.- Returns:
trueif the node has properties with double (non-conflict) changes or a child node with this flag
-
hasPotentialMergeProblems
boolean hasPotentialMergeProblems()Tells whether the compared element has potential problems that could break a project after the merge.- Returns:
trueif have potential merge problems,falseotherwise
-