Class AbstractEmfBasedComparisonParticipant.BmIdsWrapper
java.lang.Object
com._1c.g5.v8.dt.compare.participant.AbstractEmfBasedComparisonParticipant.BmIdsWrapper
- Enclosing class:
- AbstractEmfBasedComparisonParticipant
Wrapper to store bm ids of child nodes to be compared later in a separate thread.
-
Constructor Summary
ConstructorsConstructorDescriptionBmIdsWrapper
(TopComparisonNode topNode, List<Long> bmIdsWrappingList) Creates wrapper instance for the specified node. -
Method Summary
Modifier and TypeMethodDescriptionvoid
createChildNode
(LazyNodeProvider<? extends ComparisonNode> parentNodeProvider, IComparisonSession session, ComparedFeatures<org.eclipse.emf.ecore.EReference> comparedExternalProperties, AbstractComparedEmfObjects<?> comparingObject) Creates new child node and stores it in the wrapped list.Creates wrapper instance for a new node, but with the same list of bm ids to be wrapped.Returns wrapped list of bm ids of child nodes.
-
Constructor Details
-
BmIdsWrapper
Creates wrapper instance for the specified node.- Parameters:
topNode
- the top node for which to wrap child bm ids, cannot benull
bmIdsWrappingList
- the list of bm ids to wrap, will be filled by new ids during comparison, cannot benull
-
-
Method Details
-
createChildNode
public void createChildNode(LazyNodeProvider<? extends ComparisonNode> parentNodeProvider, IComparisonSession session, ComparedFeatures<org.eclipse.emf.ecore.EReference> comparedExternalProperties, AbstractComparedEmfObjects<?> comparingObject) Creates new child node and stores it in the wrapped list.- Parameters:
parentNodeProvider
- the provider of a parent node for the child node to be created, can benull
session
- the comparison sessioncomparedExternalProperties
- the compared external property feature for which to create child nodecomparingObject
- the triple of objects to be compared
-
getChildrenBmIds
Returns wrapped list of bm ids of child nodes.- Returns:
- the list of bm ids, never
null
-
createWrapperForNode
public AbstractEmfBasedComparisonParticipant.BmIdsWrapper createWrapperForNode(TopComparisonNode node) Creates wrapper instance for a new node, but with the same list of bm ids to be wrapped.- Parameters:
node
- the node to create wrapper for, cannot benull
- Returns:
- the new wrapper instance, never
null
-