|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtend.typesystem.emf.EcoreUtil2
public class EcoreUtil2
Provides useful functions for usage of EMF.
Constructor Summary | |
---|---|
EcoreUtil2()
|
Method Summary | |
---|---|
static java.util.Collection<org.eclipse.emf.ecore.EObject> |
allContents(org.eclipse.emf.ecore.EObject modelElement)
|
static java.util.List |
clone(org.eclipse.emf.common.util.EList list)
Clones a list. |
static java.util.Set<org.eclipse.emf.ecore.EObject> |
findAllByType(java.util.Iterator<?> iter,
java.lang.Class<?> type)
Finds all elements within a collection of a specific type. |
static org.eclipse.emf.ecore.EPackage |
getEPackage(java.lang.String pathToEcoreFile)
|
static org.eclipse.emf.ecore.EPackage |
getEPackageByClassName(java.lang.String ePackage)
Finds an EMF EPackage instance by its class name. |
static org.eclipse.emf.ecore.EPackage |
getEPackageByDescriptorClassName(java.lang.String ePackageDescriptor)
Finds an EPackage by the class name of the Package Descriptor. |
static org.eclipse.emf.common.util.URI |
getURI(java.lang.String file)
Creates an URI from a file name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EcoreUtil2()
Method Detail |
---|
public static final org.eclipse.emf.ecore.EPackage getEPackage(java.lang.String pathToEcoreFile)
public static java.util.Set<org.eclipse.emf.ecore.EObject> findAllByType(java.util.Iterator<?> iter, java.lang.Class<?> type)
iter
- An iterator over the source collection.type
- The type which should be selected.
public static java.util.List clone(org.eclipse.emf.common.util.EList list)
list
- The list that should be cloned.
public static org.eclipse.emf.ecore.EPackage getEPackageByClassName(java.lang.String ePackage) throws org.eclipse.emf.mwe.core.ConfigurationException
ePackage
- The class name of the EPackage interface
null
if any exception
occurs after the class was successfully loaded.
org.eclipse.emf.mwe.core.ConfigurationException
- If the class specified by ePackage cannot be loaded.public static org.eclipse.emf.ecore.EPackage getEPackageByDescriptorClassName(java.lang.String ePackageDescriptor)
ePackageDescriptor
- The Package Descriptor's classname
null
on any exception
occuring while retrieval.public static org.eclipse.emf.common.util.URI getURI(java.lang.String file)
file
- The file's path
public static java.util.Collection<org.eclipse.emf.ecore.EObject> allContents(org.eclipse.emf.ecore.EObject modelElement)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |