Package com.nomagic.magicdraw.uml2
Class UML2MetaTypes
- java.lang.Object
-
- com.nomagic.magicdraw.uml2.UML2MetaTypes
-
public class UML2MetaTypes extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
UML2MetaTypes.CachedResolver
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
UML2METAMODEL_NAME
Name of UML2 metamodelstatic java.lang.String
UML2METAMODEL_PRIMITIVE_TYPES
Name of primitives package in the UML2 metamodelstatic java.lang.String
UML2METAMODEL_URI
URI of UML2 metamodel, must correspond UML standard profile metamodel uri.
-
Constructor Summary
Constructors Constructor Description UML2MetaTypes()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Class<? extends Element>
getClassOfMetaClass(Class metaClass)
static boolean
hasUML2MetamodelNameAndURI(Model model)
static boolean
hasUML2MetaModelURI(Model model)
static boolean
isOfType(Element element, Class uml2MetaClass)
static boolean
isOwnedByUML2Metamodel(Class c)
static boolean
isUML2MetaClass(Class c)
static void
setCachedResolver(UML2MetaTypes.CachedResolver resolver)
-
-
-
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
-
-
Method Detail
-
setCachedResolver
public static void setCachedResolver(@CheckForNull UML2MetaTypes.CachedResolver resolver)
-
isUML2MetaClass
public static boolean isUML2MetaClass(Class c)
-
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)
-
-