Package com.nomagic.magicdraw.uml2.util
Class UMLEClasses
java.lang.Object
com.nomagic.magicdraw.uml2.util.UMLEClasses
Utility class for providing EClasses from UML metamodel.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<org.eclipse.emf.ecore.EClass>
Collects all non-abstract UML metaclassesstatic org.eclipse.emf.ecore.EClass
static Collection<org.eclipse.emf.ecore.EClass>
getSubClasses
(Class<? extends Element> classType) Collects subclasses including given one.static Collection<org.eclipse.emf.ecore.EClass>
getSubClasses
(Class<? extends Element>[] classType) Collects subclasses including given ones.
-
Constructor Details
-
UMLEClasses
public UMLEClasses()
-
-
Method Details
-
getClass
- Parameters:
classType
- class type- Returns:
- EClass for given class type
-
getSubClasses
public static Collection<org.eclipse.emf.ecore.EClass> getSubClasses(Class<? extends Element> classType) Collects subclasses including given one. Does not return abstract ones.- Parameters:
classType
- class type- Returns:
- non-abstract subclasses including given one
-
getSubClasses
public static Collection<org.eclipse.emf.ecore.EClass> getSubClasses(Class<? extends Element>[] classType) Collects subclasses including given ones. Does not return abstract ones.- Parameters:
classType
- class type- Returns:
- non-abstract subclasses including given ones
-
getAllClasses
Collects all non-abstract UML metaclasses- Returns:
- non-abstract UML metaclasses
-