Class BaseSupplyDataReferenceProviderComparisonDelegate
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.core.supply.BaseSupplyDataReferenceProviderComparisonDelegate
-
- All Implemented Interfaces:
ISupplyDataReferenceProviderComparisonDelegate
- Direct Known Subclasses:
MdSupplyReferenceProviderComparisonDelegate
public abstract class BaseSupplyDataReferenceProviderComparisonDelegate extends Object implements ISupplyDataReferenceProviderComparisonDelegate
Base implementation of theISupplyDataReferenceProviderComparisonDelegate
-
-
Constructor Summary
Constructors Constructor Description BaseSupplyDataReferenceProviderComparisonDelegate()
Constructs the instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
fillInSupplyIfIntegratedTargets(Set<org.eclipse.emf.ecore.EStructuralFeature> supplyIfIntegratedTargets, Set<org.eclipse.emf.ecore.EClass> supplyIfIntegratedContainers)
Provdes information on features applicable for the "supply if integrated" rule.protected IContainmentDataReference
getContainmentDataReferenceForIntegratedReferencesOnlyTarget(ComparisonNode containerNode, String topObjectSymlink, ComparisonContext comparisonContext)
Get specific reference for the containment.protected IPropertyDataReference
getPropertyDataReferenceForIntegratedReferencesOnlyTarget(ContainmentComparisonNode comparisonNode, org.eclipse.emf.ecore.EStructuralFeature manyFeature, ComparisonContext comparisonContext)
Get specific reference for the property.protected IDataReference
tryToFindIntegratedReferencesOnlyTarget(String topObjectSymlink, ComparisonNode comparisonNode, org.eclipse.emf.ecore.EStructuralFeature containingFeature, ComparisonContext comparisonContext)
Trying to find "integrated references only" rule targets, if applicable.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.dt.compare.core.supply.ISupplyDataReferenceProviderComparisonDelegate
getContainmentReference, handles, isTopObjectReference
-
-
-
-
Method Detail
-
fillInSupplyIfIntegratedTargets
protected void fillInSupplyIfIntegratedTargets(Set<org.eclipse.emf.ecore.EStructuralFeature> supplyIfIntegratedTargets, Set<org.eclipse.emf.ecore.EClass> supplyIfIntegratedContainers)
Provdes information on features applicable for the "supply if integrated" rule. This features will participate in the reference resolving/integration process. All other features will be ignored by this deelgate.- Parameters:
supplyIfIntegratedTargets
- The target set of features. The implementing side should place required features there. Cannot benull
supplyIfIntegratedContainers
- The set of feature container targets. Limits the processing of target features by features belonging to containers of specified types. Only direct holders of the feature are supported. This filter is used to limit processing of common features (like types). Cannot benull
-
getContainmentDataReferenceForIntegratedReferencesOnlyTarget
protected IContainmentDataReference getContainmentDataReferenceForIntegratedReferencesOnlyTarget(ComparisonNode containerNode, String topObjectSymlink, ComparisonContext comparisonContext)
Get specific reference for the containment. This method could be implemented by descendants to provide references to the containments that contains the property that should be controlled during the library integration.- Parameters:
containerNode
- The node that contains target many feature. Cannot benull
topObjectSymlink
- Symlynk of the top object containing target containment. Cannot benull
comparisonContext
- Current comparison context. Cannot benull
- Returns:
- The containment data reference, if found. Can be
null
-
getPropertyDataReferenceForIntegratedReferencesOnlyTarget
protected IPropertyDataReference getPropertyDataReferenceForIntegratedReferencesOnlyTarget(ContainmentComparisonNode comparisonNode, org.eclipse.emf.ecore.EStructuralFeature manyFeature, ComparisonContext comparisonContext)
Get specific reference for the property. This method could be implemented by descendants to provide references to the properties that should be controlled during the library integration.- Parameters:
comparisonNode
- Target comparison node. Cannot benull
manyFeature
- The feature that is being controlled by the "supply if integrated" policy. Cannot benull
comparisonContext
- Current comparison context. Cannot benull
- Returns:
- The property data reference, if found. Can be
null
- See Also:
tryToFindIntegratedReferencesOnlyTarget(java.lang.String, com._1c.g5.v8.dt.compare.model.ComparisonNode, org.eclipse.emf.ecore.EStructuralFeature, com._1c.g5.v8.dt.compare.core.ComparisonContext)
-
tryToFindIntegratedReferencesOnlyTarget
protected final IDataReference tryToFindIntegratedReferencesOnlyTarget(String topObjectSymlink, ComparisonNode comparisonNode, org.eclipse.emf.ecore.EStructuralFeature containingFeature, ComparisonContext comparisonContext)
Trying to find "integrated references only" rule targets, if applicable. This method could be used by descendants to process "integrated references only" targets. This method shouldn't be overriden- Parameters:
topObjectSymlink
- Symlynk of the top object containing target containment. Cannot benull
comparisonNode
- The node of the comparison tree mode being the context of the reference. Cannot benull
containingFeature
- The feature that contains target object. Should be supplied in case if the collection element is being addressed. Can benull
comparisonContext
- Current comparison context. Cannot benull
- Returns:
- The data reference, if found. Can be
null
-
-