org.eclipse.epsilon.emc.emf
Class EmfUtil
java.lang.Object
org.eclipse.epsilon.emc.emf.EmfUtil
public class EmfUtil
- extends java.lang.Object
Method Summary |
static
<T extends org.eclipse.emf.ecore.EObject>
T |
|
clone(T object)
|
static void |
collectDependencies(org.eclipse.emf.ecore.EPackage ePackage,
java.util.List<org.eclipse.emf.ecore.EPackage> dependencies)
|
static org.eclipse.emf.common.util.URI |
createFileBasedURI(java.lang.String s)
|
static org.eclipse.emf.common.util.URI |
createPlatformResourceURI(java.lang.String s)
|
static org.eclipse.emf.ecore.resource.Resource |
createResource()
|
static org.eclipse.emf.ecore.resource.Resource |
createResource(org.eclipse.emf.ecore.EObject rootObject)
|
static org.eclipse.emf.ecore.resource.Resource |
createResource(org.eclipse.emf.ecore.EObject rootObject,
org.eclipse.emf.common.util.URI uri)
|
static org.eclipse.emf.ecore.resource.Resource |
createResource(org.eclipse.emf.common.util.URI uri)
|
static java.util.List<org.eclipse.emf.ecore.EClass> |
getAllEClassesFromSameMetamodelAs(org.eclipse.emf.ecore.EModelElement metamodelElement)
|
static java.util.Collection<org.eclipse.emf.ecore.EClassifier> |
getAllEClassifiers(org.eclipse.emf.ecore.EPackage epackage)
|
static
<T extends org.eclipse.emf.ecore.EObject>
java.util.List<T> |
|
getAllModelElementsOfType(org.eclipse.emf.ecore.EObject modelElement,
java.lang.Class<T> type)
|
static org.eclipse.emf.ecore.EStructuralFeature |
getEStructuralFeature(org.eclipse.emf.ecore.EClass eClass,
java.lang.String featureName)
|
static java.lang.String |
getFile(org.eclipse.emf.common.util.URI uri)
|
static org.eclipse.emf.ecore.EPackage |
getTopEPackage(org.eclipse.emf.ecore.EObject object)
|
static org.eclipse.emf.ecore.EPackage |
getTopEPackage(org.eclipse.emf.ecore.EPackage ePackage)
|
static void |
initialiseResourceFactoryRegistry()
|
static java.util.List<org.eclipse.emf.ecore.EPackage> |
register(org.eclipse.emf.common.util.URI uri,
org.eclipse.emf.ecore.EPackage.Registry registry)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmfUtil
public EmfUtil()
getEStructuralFeature
public static org.eclipse.emf.ecore.EStructuralFeature getEStructuralFeature(org.eclipse.emf.ecore.EClass eClass,
java.lang.String featureName)
createPlatformResourceURI
public static org.eclipse.emf.common.util.URI createPlatformResourceURI(java.lang.String s)
createFileBasedURI
public static org.eclipse.emf.common.util.URI createFileBasedURI(java.lang.String s)
getFile
public static java.lang.String getFile(org.eclipse.emf.common.util.URI uri)
getTopEPackage
public static org.eclipse.emf.ecore.EPackage getTopEPackage(org.eclipse.emf.ecore.EObject object)
collectDependencies
public static void collectDependencies(org.eclipse.emf.ecore.EPackage ePackage,
java.util.List<org.eclipse.emf.ecore.EPackage> dependencies)
getTopEPackage
public static org.eclipse.emf.ecore.EPackage getTopEPackage(org.eclipse.emf.ecore.EPackage ePackage)
initialiseResourceFactoryRegistry
public static void initialiseResourceFactoryRegistry()
register
public static java.util.List<org.eclipse.emf.ecore.EPackage> register(org.eclipse.emf.common.util.URI uri,
org.eclipse.emf.ecore.EPackage.Registry registry)
throws java.lang.Exception
- Throws:
java.lang.Exception
getAllEClassesFromSameMetamodelAs
public static java.util.List<org.eclipse.emf.ecore.EClass> getAllEClassesFromSameMetamodelAs(org.eclipse.emf.ecore.EModelElement metamodelElement)
getAllEClassifiers
public static java.util.Collection<org.eclipse.emf.ecore.EClassifier> getAllEClassifiers(org.eclipse.emf.ecore.EPackage epackage)
getAllModelElementsOfType
public static <T extends org.eclipse.emf.ecore.EObject> java.util.List<T> getAllModelElementsOfType(org.eclipse.emf.ecore.EObject modelElement,
java.lang.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)
clone
public static <T extends org.eclipse.emf.ecore.EObject> T clone(T object)