Class EmfUtil


  • public abstract class EmfUtil
    extends Object
    • Method Detail

      • createFromString

        public static Object createFromString​(org.eclipse.emf.ecore.EDataType type,
                                              String value)
      • isContainmentReference

        public static boolean isContainmentReference​(org.eclipse.emf.ecore.EStructuralFeature feature)
      • getAllEClassesFromSameMetamodelAs

        public static List<org.eclipse.emf.ecore.EClass> getAllEClassesFromSameMetamodelAs​(org.eclipse.emf.ecore.EModelElement metamodelElement)
      • getAllModelElementsOfType

        public static <T extends org.eclipse.emf.ecore.EObject> List<T> getAllModelElementsOfType​(org.eclipse.emf.ecore.EObject modelElement,
                                                                                                  Class<T> type)
      • getAllModelElementsOfType

        public static <T extends org.eclipse.emf.ecore.EObject> List<T> getAllModelElementsOfType​(org.eclipse.emf.ecore.resource.Resource resource,
                                                                                                  Class<T> type)
      • createResource

        public static org.eclipse.emf.ecore.resource.Resource createResource()
      • createResource

        public static org.eclipse.emf.ecore.resource.Resource createResource​(org.eclipse.emf.common.util.URI uri)
      • createResource

        public static org.eclipse.emf.ecore.resource.Resource createResource​(org.eclipse.emf.ecore.EObject rootObject)
      • createResource

        public static org.eclipse.emf.ecore.resource.Resource createResource​(org.eclipse.emf.ecore.EObject rootObject,
                                                                             org.eclipse.emf.common.util.URI uri)