Class BaseSupplyDataReferenceProviderComparisonDelegate

    • Constructor Detail

      • BaseSupplyDataReferenceProviderComparisonDelegate

        public BaseSupplyDataReferenceProviderComparisonDelegate()
        Constructs the instance
    • 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 be null
        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 be null
      • getContainmentDataReferenceForIntegratedReferencesOnlyTarget

        protected IContainmentDataReference getContainmentDataReferenceForIntegratedReferencesOnlyTarget​(ComparisonTreeNode 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 be null
        topObjectSymlink - Symlynk of the top object containing target containment. Cannot be null
        comparisonContext - Current comparison context. Cannot be null
        Returns:
        The containment data reference, if found. Can be null
      • tryToFindIntegratedReferencesOnlyTarget

        protected final IDataReference tryToFindIntegratedReferencesOnlyTarget​(String topObjectSymlink,
                                                                               ComparisonTreeNode 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 be null
        comparisonNode - The node of the comparison tree mode being the context of the reference. Cannot be null
        containingFeature - The feature that contains target object. Should be supplied in case if the collection element is being addressed. Can be null
        comparisonContext - Current comparison context. Cannot be null
        Returns:
        The data reference, if found. Can be null