Class ModelUtil


  • public class ModelUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ModelUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean eObjectsAreEqual​(org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> first, org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> second, boolean conjunction)  
      static boolean eObjectsAreEqual​(org.eclipse.emf.ecore.EObject first, org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> second, boolean conjunction)  
      static boolean eObjectsAreEqual​(org.eclipse.emf.ecore.EObject first, org.eclipse.emf.ecore.EObject second, boolean conjunction)  
      static org.eclipse.emf.ecore.EPackage getEPackage​(org.eclipse.emf.ecore.EObject eObject)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ModelUtil

        public ModelUtil()
    • Method Detail

      • eObjectsAreEqual

        public static boolean eObjectsAreEqual​(org.eclipse.emf.ecore.EObject first,
                                               org.eclipse.emf.ecore.EObject second,
                                               boolean conjunction)
        Parameters:
        first - the first EObject
        second - the second EObject
        conjunction - true if exact matching is required, false if at least one of features are equal
        Returns:
        whether the first and second are the same EPackages
      • eObjectsAreEqual

        public static boolean eObjectsAreEqual​(org.eclipse.emf.ecore.EObject first,
                                               org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> second,
                                               boolean conjunction)
      • eObjectsAreEqual

        public static boolean eObjectsAreEqual​(org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> first,
                                               org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> second,
                                               boolean conjunction)
      • getEPackage

        public static org.eclipse.emf.ecore.EPackage getEPackage​(org.eclipse.emf.ecore.EObject eObject)