Interface IPartialListElementNode
-
- All Superinterfaces:
IComparedElement
,IMergeRulePartialModelNode
,IPartialModelNode
- All Known Implementing Classes:
EqualListElementNodeWithChildren
,EqualListElementTerminalNode
,EqualReferenceListElementTerminalNode
,ListElementNodeWithChildren
,ListElementTerminalNode
public interface IPartialListElementNode extends IMergeRulePartialModelNode
Represents partial node of an element in a collection of elements.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.emf.ecore.EStructuralFeature
getParentFeature()
Returns feature of a parent collection where this element lies.int
getPosition(ComparisonSide side)
Returns element's position (index) in the collection of model objects from the corresponding side.-
Methods inherited from interface com._1c.g5.v8.dt.compare.model.IComparedElement
hasChanged, hasDifferences, hasDoubleChanges, hasOnlyOnOneSide, hasOrderChanged, hasPotentialMergeProblems, hasUnchanged
-
Methods inherited from interface com._1c.g5.v8.dt.compare.ui.partialmodel.node.IMergeRulePartialModelNode
getAvailableMergeRules, getMergeRule, setMergeRule, setShowMergeRule, showMergeRule
-
Methods inherited from interface com._1c.g5.v8.dt.compare.ui.partialmodel.node.IPartialModelNode
addChild, canExpand, check, getChildren, getComparisonSession, getCustomMergeSettingsStatus, getImage, getLabel, getNodeId, getParent, getSide, getSideLabel, getSortedChildren, getStatus, getTooltipText, hasChildren, isCheckable, isChecked, isGrayed, prioritize, retrieveComparisonNode, setChecked, setCustomMergeSettingsStatus, setParent, setStatus
-
-
-
-
Method Detail
-
getParentFeature
org.eclipse.emf.ecore.EStructuralFeature getParentFeature()
Returns feature of a parent collection where this element lies.- Returns:
- the corresponding feature, never
null
-
getPosition
int getPosition(ComparisonSide side)
Returns element's position (index) in the collection of model objects from the corresponding side.- Parameters:
side
- the comparison side, cannot benull
- Returns:
- the element's position or -1 if the element is absent under the given comparison side
-
-