Class ExtensionEqualityHelper

    • Constructor Detail

      • ExtensionEqualityHelper

        public ExtensionEqualityHelper​(ITopObjectFqnGenerator topObjectFqnGenerator,
                                       IBmEngine bmEngine)
        Constructor.
        Parameters:
        topObjectFqnGenerator - the top object FQN generator, cannot be null
        bmEngine - the BM engine, cannot be null
      • ExtensionEqualityHelper

        public ExtensionEqualityHelper​(ITopObjectFqnGenerator topObjectFqnGenerator,
                                       IBmEngine bmEngine,
                                       org.eclipse.emf.ecore.EStructuralFeature... ignoredFeatures)
        Constructor.
        Parameters:
        topObjectFqnGenerator - the top object FQN generator, cannot be null
        bmEngine - the BM engine, cannot be null
        ignoredFeatures - EMF features to be ignored, can be null
    • Method Detail

      • haveEqualFeature

        protected boolean haveEqualFeature​(org.eclipse.emf.ecore.EObject eObject1,
                                           org.eclipse.emf.ecore.EObject eObject2,
                                           org.eclipse.emf.ecore.EStructuralFeature feature)
        Overrides:
        haveEqualFeature in class EqualityHelper
      • haveEqualReference

        protected boolean haveEqualReference​(org.eclipse.emf.ecore.EObject eObject1,
                                             org.eclipse.emf.ecore.EObject eObject2,
                                             org.eclipse.emf.ecore.EReference reference)
        Overrides:
        haveEqualReference in class EqualityHelper
      • getNonEqualFeatures

        public Collection<org.eclipse.emf.ecore.EStructuralFeature> getNonEqualFeatures​(org.eclipse.emf.ecore.EObject eObject1,
                                                                                        org.eclipse.emf.ecore.EObject eObject2)
        Returns collection of equal features.
        Parameters:
        eObject1 - some EObject
        eObject2 - some EObject
        Returns:
        collection of equal features, never null
      • equals

        public boolean equals​(org.eclipse.emf.ecore.EObject eObject1,
                              org.eclipse.emf.ecore.EObject eObject2)
        Overrides:
        equals in class org.eclipse.emf.ecore.util.EcoreUtil.EqualityHelper
      • isExcludedFeature

        protected boolean isExcludedFeature​(org.eclipse.emf.ecore.EStructuralFeature feature)
        Description copied from class: EqualityHelper
        Returns true if the given feature should be ignored.
        Overrides:
        isExcludedFeature in class EqualityHelper
        Parameters:
        feature - the feature, cannot be null
        Returns:
        true if the given feature should be ignored