Class EqualityHelper

    • Constructor Detail

      • EqualityHelper

        public EqualityHelper​(org.eclipse.emf.ecore.EStructuralFeature... ignoredFeatures)
        Creates a new form item equality helper.
        Parameters:
        ignoredFeatures - EMF features to be ignored, can be null
    • Method Detail

      • ignoreFeatures

        public EqualityHelper ignoreFeatures​(org.eclipse.emf.ecore.EStructuralFeature... ignoredFeatures)
        Adds ignored EMF features to the set and returns this
        Parameters:
        ignoredFeatures - EMF features to be ignored
        Returns:
        EqualityHelper instance, cannot be null
      • haveEqualAttribute

        protected boolean haveEqualAttribute​(org.eclipse.emf.ecore.EObject eObject1,
                                             org.eclipse.emf.ecore.EObject eObject2,
                                             org.eclipse.emf.ecore.EAttribute attribute)
        Overrides:
        haveEqualAttribute in class org.eclipse.emf.ecore.util.EcoreUtil.EqualityHelper
      • 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 org.eclipse.emf.ecore.util.EcoreUtil.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 org.eclipse.emf.ecore.util.EcoreUtil.EqualityHelper
      • isExcludedFeature

        protected boolean isExcludedFeature​(org.eclipse.emf.ecore.EStructuralFeature feature)
        Returns true if the given feature should be ignored.
        Parameters:
        feature - the feature, cannot be null
        Returns:
        true if the given feature should be ignored