Class AbstractElementSupplier

java.lang.Object
com._1c.g5.v8.dt.compare.ui.partialmodel.AbstractElementSupplier
All Implemented Interfaces:
IInnerElementSupplier
Direct Known Subclasses:
AbstractFeatureElementSupplier, ObjectRightsSupplier, RlsSupplier

public abstract class AbstractElementSupplier extends Object implements IInnerElementSupplier
Abstract supplier of inner elements.
  • Constructor Details

    • AbstractElementSupplier

      public AbstractElementSupplier()
  • Method Details

    • createChildEqualNode

      protected abstract IPartialEqualNode createChildEqualNode(IPartialModelNode parent, AbstractComparedEmfObjects<?> parents, AbstractComparedEmfObjects<?> eObjects, ComparisonContext comparisonContext, org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
      Creates a partial model node for the specified eObjects assumed to be equal for MAIN and OTHER sides.
      Parameters:
      parent - the parent partial model node, not null
      parents - the parent eObjects, not null
      eObjects - the objects to create the partial node for, not null
      comparisonContext - the comparison context, not null
      scopeProvider - the scope provider, not null
      Returns:
      a new partial model node, never null
    • createChildNode

      protected abstract IPartialModelNode createChildNode(IPartialModelNode parent, ComparisonNode comparisonNode, ComparisonContext comparisonContext, org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
      Creates a partial model node for the specified comparison node.
      Parameters:
      parent - the parent partial model node, not null
      comparisonNode - the comparison node for which to create the partial one, not null
      comparisonContext - the comparison context, not null
      scopeProvider - the scope provider, not null
      Returns:
      a new partial model node, never null
    • createChildEqualNodes

      protected List<IPartialModelNode> createChildEqualNodes(IPartialModelNode parent, org.eclipse.emf.ecore.EStructuralFeature feature, ComparisonContext comparisonContext, org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
      Creates child equal-side partial nodes for the specified parent and feature.
      Parameters:
      parent - the parent partial node, cannot be null
      feature - the feature to create child nodes for, cannot be null
      comparisonContext - the comparison context, not null
      scopeProvider - the scope provider, cannot be null
      Returns:
      the list of created partial nodes, cannot be null
    • createChildNodes

      protected List<IPartialModelNode> createChildNodes(IPartialModelNode parent, ComparisonNode comparisonNode, org.eclipse.emf.ecore.EStructuralFeature feature, ComparisonContext comparisonContext, org.eclipse.xtext.scoping.IScopeProvider scopeProvider)
      Creates child partial nodes for the specified parent and comparison node.
      Parameters:
      parent - the parent partial node, cannot be null
      comparisonNode - the comparison node to create partial nodes for, can be null
      feature - the node's feature, cannot be null
      comparisonContext - the comparison context, cannot be null
      scopeProvider - the scope provider, cannot be null
      Returns:
      the list of created partial nodes, cannot be null
    • createEqualNodesObjectsCollector

      protected EqualNodesObjectsCollector createEqualNodesObjectsCollector()
      Creates a collector to collect child objects to create equal nodes for. Descendants may provide own implementation.
      Returns:
      the collector instance, never null