Class AbstractElementSupplier
java.lang.Object
com._1c.g5.v8.dt.compare.ui.partialmodel.AbstractElementSupplier
- All Implemented Interfaces:
IInnerElementSupplier
- Direct Known Subclasses:
AbstractFeatureElementSupplier,ObjectRightsSupplier,RlsSupplier
Abstract supplier of inner elements.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract IPartialEqualNodecreateChildEqualNode(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.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.protected abstract IPartialModelNodecreateChildNode(IPartialModelNode parent, ComparisonNode comparisonNode, ComparisonContext comparisonContext, org.eclipse.xtext.scoping.IScopeProvider scopeProvider) Creates a partial model node for the specified comparison node.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.protected EqualNodesObjectsCollectorCreates a collector to collect child objects to create equal nodes for.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com._1c.g5.v8.dt.compare.ui.partialmodel.IInnerElementSupplier
getInnerElements, supports
-
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, notnullparents- the parent eObjects, notnulleObjects- the objects to create the partial node for, notnullcomparisonContext- the comparison context, notnullscopeProvider- the scope provider, notnull- 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, notnullcomparisonNode- the comparison node for which to create the partial one, notnullcomparisonContext- the comparison context, notnullscopeProvider- the scope provider, notnull- 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 benullfeature- the feature to create child nodes for, cannot benullcomparisonContext- the comparison context, notnullscopeProvider- the scope provider, cannot benull- 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 benullcomparisonNode- the comparison node to create partial nodes for, can benullfeature- the node's feature, cannot benullcomparisonContext- the comparison context, cannot benullscopeProvider- the scope provider, cannot benull- Returns:
- the list of created partial nodes, cannot be
null
-
createEqualNodesObjectsCollector
Creates a collector to collect child objects to create equal nodes for. Descendants may provide own implementation.- Returns:
- the collector instance, never
null
-