Class AbstractEmfBasedComparisonParticipant.BmIdsWrapper
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.participant.AbstractEmfBasedComparisonParticipant.BmIdsWrapper
-
- Enclosing class:
- AbstractEmfBasedComparisonParticipant
protected class AbstractEmfBasedComparisonParticipant.BmIdsWrapper extends Object
Wrapper to store bm ids of child nodes to be compared later in a separate thread.
-
-
Constructor Summary
Constructors Constructor Description BmIdsWrapper(TopComparisonNode topNode, List<Long> bmIdsWrappingList)
Creates wrapper instance for the specified node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.AbstractEmfBasedComparisonParticipant.BmIdsWrapper
createWrapperForNode(TopComparisonNode node)
Creates wrapper instance for a new node, but with the same list of bm ids to be wrapped.List<Long>
getChildrenBmIds()
Returns wrapped list of bm ids of child nodes.
-
-
-
Constructor Detail
-
BmIdsWrapper
public BmIdsWrapper(TopComparisonNode topNode, List<Long> bmIdsWrappingList)
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 Detail
-
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
public List<Long> 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
-
-