Class UML2MetaTypes


  • public class UML2MetaTypes
    extends java.lang.Object
    • Field Detail

      • UML2METAMODEL_NAME

        public static final java.lang.String UML2METAMODEL_NAME
        Name of UML2 metamodel
        See Also:
        Constant Field Values
      • UML2METAMODEL_URI

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

        public static final java.lang.String UML2METAMODEL_PRIMITIVE_TYPES
        Name of primitives package in the UML2 metamodel
        See Also:
        Constant Field Values
    • Constructor Detail

      • UML2MetaTypes

        public UML2MetaTypes()
    • Method Detail

      • isUML2MetaClass

        public static boolean isUML2MetaClass​(Class c)
      • callWithoutCachedResolver

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

        public static boolean isOwnedByUML2Metamodel​(Class c)
      • getClassOfMetaClass

        @CheckForNull
        public static java.lang.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)