Class ModelUtil

java.lang.Object
org.enterprisedomain.classmaker.util.ModelUtil

public class ModelUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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 Details

    • ModelUtil

      public ModelUtil()
  • Method Details

    • 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)