public static Collection<org.eclipse.emf.ecore.EClass> getSubClasses(org.eclipse.emf.ecore.EClass superClass)
This method looks through all known EPackages to find all concrete subclasses for the provided super
class (abstract classes and interfaces will be ignored). If the EClass is EObject, all non abstract and non
interface classes will be returned.
superClass - - the class for which to get the subclasses
public static Set<org.eclipse.emf.ecore.EPackage> getAllRegisteredEPackages()
Returns the set of all known EPackages.
the Set of all known Epackages
public static boolean filteredEquals(org.eclipse.emf.ecore.EObject property,
Check two EObjects for equality by comparing their EClass and all their features' values.
Additionally, an arbitrary number of features can be supplied whose values will not be compared
to determine equality. This can be used to implement a custom equality check in the client.
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 otherwise
public static <A> Optional<A> adapt(org.eclipse.emf.ecore.EObject object,
Tries to adapt the given EObject to the given class. This is done with help of the EObject's
A - The adapter type
object - The EObject to adapt
adapter - The adapter class
The adapted EObject or nothing if the EObjects AdapterFactoryEditingDomain could not be determined or the
EObject could not be adapted to the target type.