public final class EMFUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
filteredEquals(org.eclipse.emf.ecore.EObject property,
org.eclipse.emf.ecore.EObject other,
org.eclipse.emf.ecore.EStructuralFeature... filteredFeatures)
Check two EObjects for equality by comparing their EClass and all their features' values.
|
static Set<org.eclipse.emf.ecore.EPackage> |
getAllRegisteredEPackages()
Returns the set of all known
EPackages . |
static Collection<org.eclipse.emf.ecore.EClass> |
getSubClasses(org.eclipse.emf.ecore.EClass superClass)
This method looks through all known
EPackage s to find all concrete subclasses for the provided super
class (abstract classes and interfaces will be ignored). |
public static Collection<org.eclipse.emf.ecore.EClass> getSubClasses(org.eclipse.emf.ecore.EClass superClass)
EPackage
s to find all concrete subclasses for the provided super
class (abstract classes and interfaces will be ignored).superClass
- - the class for which to get the subclassesCollection
of EClasses
public static Set<org.eclipse.emf.ecore.EPackage> getAllRegisteredEPackages()
EPackages
.Epackages
public static boolean filteredEquals(org.eclipse.emf.ecore.EObject property, org.eclipse.emf.ecore.EObject other, org.eclipse.emf.ecore.EStructuralFeature... filteredFeatures)
property
- The EObject triggering the comparison, might be null
.other
- The other style EObject, might be null
filteredFeatures
- Features that are ignored in the equality check.true
if the EClass and the values of all features are equal or if both EObjects are
null
, false
otherwiseCopyright © 2018. All rights reserved.