Package com.nomagic.magicdraw.uml2.util
Class UMLEClasses
- java.lang.Object
-
- com.nomagic.magicdraw.uml2.util.UMLEClasses
-
public class UMLEClasses extends java.lang.Object
Utility class for providing EClasses from UML metamodel.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Collection<org.eclipse.emf.ecore.EClass>
allClasses
-
Constructor Summary
Constructors Constructor Description UMLEClasses()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Collection<org.eclipse.emf.ecore.EClass>
getAllClasses()
Collects all non-abstract UML metaclassesstatic org.eclipse.emf.ecore.EClass
getClass(java.lang.Class<? extends Element> classType)
static java.util.Collection<org.eclipse.emf.ecore.EClass>
getSubClasses(java.lang.Class<? extends Element> classType)
Collects subclasses including given one.static java.util.Collection<org.eclipse.emf.ecore.EClass>
getSubClasses(java.lang.Class<? extends Element>[] classType)
Collects subclasses including given ones.
-
-
-
Method Detail
-
getClass
public static org.eclipse.emf.ecore.EClass getClass(java.lang.Class<? extends Element> classType)
- Parameters:
classType
- class type- Returns:
- EClass for given class type
-
getSubClasses
public static java.util.Collection<org.eclipse.emf.ecore.EClass> getSubClasses(java.lang.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 java.util.Collection<org.eclipse.emf.ecore.EClass> getSubClasses(java.lang.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
public static java.util.Collection<org.eclipse.emf.ecore.EClass> getAllClasses()
Collects all non-abstract UML metaclasses- Returns:
- non-abstract UML metaclasses
-
-