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 Details

    • 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 be null
      bmIdsWrappingList - the list of bm ids to wrap, will be filled by new ids during comparison, cannot be null
  • 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 be null
      session - the comparison session
      comparedExternalProperties - the compared external property feature for which to create child node
      comparingObject - 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

      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 be null
      Returns:
      the new wrapper instance, never null