Class UMLEClasses

java.lang.Object
com.nomagic.magicdraw.uml2.util.UMLEClasses

public class UMLEClasses extends Object
Utility class for providing EClasses from UML metamodel.
  • Constructor Details

    • UMLEClasses

      public UMLEClasses()
  • Method Details

    • getClass

      public static org.eclipse.emf.ecore.EClass getClass(Class<? extends Element> classType)
      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

      public static Collection<org.eclipse.emf.ecore.EClass> getAllClasses()
      Collects all non-abstract UML metaclasses
      Returns:
      non-abstract UML metaclasses