Class UML2MetaTypes

java.lang.Object
com.nomagic.magicdraw.uml2.UML2MetaTypes

public class UML2MetaTypes extends Object
  • Field Details

    • UML2METAMODEL_NAME

      public static final String UML2METAMODEL_NAME
      Name of UML2 metamodel
      See Also:
    • UML2METAMODEL_URI

      public static final String UML2METAMODEL_URI
      URI of UML2 metamodel, must correspond UML standard profile metamodel uri.
      See Also:
    • UML2METAMODEL_PRIMITIVE_TYPES

      public static final String UML2METAMODEL_PRIMITIVE_TYPES
      Name of primitives package in the UML2 metamodel
      See Also:
  • Constructor Details

    • UML2MetaTypes

      public UML2MetaTypes()
  • Method Details

    • setCachedResolver

      public static void setCachedResolver(@CheckForNull UML2MetaTypes.CachedResolver resolver)
    • isUML2MetaClass

      public static boolean isUML2MetaClass(Class c)
    • callWithoutCachedResolver

      public static <V> V callWithoutCachedResolver(Callable<V> callable) throws Exception
      Call callable without cached resolver
      Type Parameters:
      V - result type
      Parameters:
      callable - callable
      Returns:
      result of callable
      Throws:
      Exception
    • isOwnedByUML2Metamodel

      public static boolean isOwnedByUML2Metamodel(Class c)
    • getClassOfMetaClass

      @CheckForNull public static Class<? extends Element> getClassOfMetaClass(Class metaClass)
    • isOfType

      public static boolean isOfType(Element element, Class uml2MetaClass)
      Parameters:
      element - any model element
      Returns:
      true if given class type of given element is compatible with java.lang.Class of the given metaType
    • hasUML2MetamodelNameAndURI

      public static boolean hasUML2MetamodelNameAndURI(Model model)
    • hasUML2MetaModelURI

      public static boolean hasUML2MetaModelURI(Model model)