Class ClassTypes

java.lang.Object
com.nomagic.uml2.ext.jmi.reflect.ClassTypes

public class ClassTypes extends Object
Class has methods/table to get supertypes of given object.
  • Field Details

  • Constructor Details

    • ClassTypes

      public ClassTypes()
  • Method Details

    • getNameSpaces

      public static List<Class<? extends Element>> getNameSpaces()
      Returns a list of all namespaces types.
      Returns:
      a list of all namespaces types.
    • getClassifiers

      public static List<Class<? extends Classifier>> getClassifiers()
      Returns a list of all classifiers types.
      Returns:
      a list of all classifiers types.
    • getPackagesNotProfile

      public static Collection<Class<? extends Element>> getPackagesNotProfile()
      Returns a list of all classifiers types.
      Returns:
      a list of all classifiers types.
    • getSubtypes

      public static <T extends Element> Set<Class<? extends Element>> getSubtypes(Collection<Class<T>> types)
    • getSubtypes

      public static <T extends Element> Set<Class<? extends Element>> getSubtypes(Collection<Class<T>> types, boolean includeAbstract)
    • getSubtypes

      public static List<Class<? extends Element>> getSubtypes(Class<? extends Element> type)
    • getSubtypes

      public static List<Class<? extends Element>> getSubtypes(Class<? extends Element> type, boolean includeAbstract)
    • getSubtypesArray

      public static <T extends Element> Class<T>[] getSubtypesArray(Collection<Class<T>> type)
    • getSubtypesArray

      public static <T extends Element> Class<T>[] getSubtypesArray(Collection<Class<T>> type, boolean includeAbstract)
    • getSubtypesArray

      public static <T extends Element> Class<T>[] getSubtypesArray(Class<T> type)
    • getSubtypesArray

      public static <T extends Element> Class<T>[] getSubtypesArray(Class<T> type, boolean includeAbstract)
    • getDirectSubtypes

      public static <T extends Element> List<Class<? extends Element>> getDirectSubtypes(Class<T> type, boolean includeAbstract)
      Gets only direct sub-types of the type. Use getSubtypes(Class, boolean) get get all available sub-types.
      Parameters:
      type - the super type
      includeAbstract - include abstract types
      Returns:
      collection of direct sub-types
    • getSupertypes

      public static <T extends Element> List<Class<? extends Element>> getSupertypes(Class<T> type)
    • isTypeOf

      public static boolean isTypeOf(Class<? extends Element> type, Class<? extends Element> candidate)
    • getClassType

      public static Class<? extends Element> getClassType(org.omg.mof.model.Classifier metatype)
    • getClassType

      public static Class<? extends Element> getClassType(List<String> qualifiedName)
    • getClassType

      public static Class<? extends Element> getClassType(String shortName)
    • getShortName

      @CheckForNull public static String getShortName(@CheckForNull Class type)
    • getClassTypesForElements

      public static Set<Class> getClassTypesForElements(Collection<? extends BaseElement> elements)
    • getShortNameForClassTypes

      public static Set<String> getShortNameForClassTypes(Collection<Class> types)
    • getClassTypeForShortNames

      public static Set<Class> getClassTypeForShortNames(Collection<String> names)
    • removeAbstract

      public static void removeAbstract(Collection<Class> classTypes)
    • expandToConcreteMetaClasses

      public static Collection<Class<? extends Element>> expandToConcreteMetaClasses(Collection<Class<? extends Element>> metaClasses)
      Method replaces each abstract meta class with direct subclasses. If subclass is abstract meta class as well then it gets replaced as well, till non abstract sub class is reached.
      Returns:
      set of unique non-abstract meta classes
    • getTypeQualifiedName

      public static List<String> getTypeQualifiedName(javax.jmi.reflect.RefBaseObject refBaseObject)
      Get given object meta type qualified name