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)
      • 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