Class EcoreUtils


  • public final class EcoreUtils
    extends Object
    Helper methods to deal with Ecore models.
    Version:
    $Rev$
    Author:
    herrmama, $Author$
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static List<? extends org.eclipse.emf.ecore.EObject> getInverse​(org.eclipse.emf.ecore.EObject element, org.eclipse.emf.ecore.EReference reference, List<? extends org.eclipse.emf.ecore.EObject> searchArea)
      Get the inverse of a reference to an element within a search area which is denoted by the root elements.
      static String getUUID​(org.eclipse.emf.ecore.EObject element)
      Get the UUID of a model element.
      static void setUUID​(org.eclipse.emf.ecore.EObject element, String uuid)
      Set the UUID of a model element.
    • Method Detail

      • getInverse

        public static List<? extends org.eclipse.emf.ecore.EObject> getInverse​(org.eclipse.emf.ecore.EObject element,
                                                                               org.eclipse.emf.ecore.EReference reference,
                                                                               List<? extends org.eclipse.emf.ecore.EObject> searchArea)
        Get the inverse of a reference to an element within a search area which is denoted by the root elements.
      • setUUID

        public static void setUUID​(org.eclipse.emf.ecore.EObject element,
                                   String uuid)
        Set the UUID of a model element.
      • getUUID

        public static String getUUID​(org.eclipse.emf.ecore.EObject element)
        Get the UUID of a model element.