Class 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 metaclasses
      static 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • allClasses

        private static java.util.Collection<org.eclipse.emf.ecore.EClass> allClasses
    • Constructor Detail

      • UMLEClasses

        public UMLEClasses()
    • 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