You can use $profiling to access MagicDraw meta-model information.
$profiling.getGeneralizationName(modelName)
Return a generalization model of modelName.
Name | Type | Description | |
---|---|---|---|
Parameter(s) | modelName | java.lang.String | A meta-model name. |
Return | - | java.util.Collection<String> | A list of generalization model names. |
$profiling.getDeclaringElementName (modelName, propertyName)
Retrieve the meta-model name which is the declared property name.
Name | Type | Description | |
---|---|---|---|
Parameter(s) | modelName | java.lang.String | A meta-model name. |
propertyName | java.lang.String | A property name. | |
Return | - | java.lang.String | A meta-model name. |
$profiling.getPropertyTypeName (modelName, propertyName)
Retrieve property types from meta-model names.
Name | Type | Description | |
---|---|---|---|
Parameter(s) | modelName | java.lang.String | A meta-model name. |
propertyName | java.lang.String | A property name. | |
Return | - | java.lang.String | A property type name. |
$profiling.getPropertyTypeName (element, propertyName)
Retrieve property types from an element.
Name | Type | Description | |
---|---|---|---|
Parameter(s) | element | com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element | An element. |
propertyName | java.lang.String | A property name. | |
Return | - | java.lang.String | A property type name. |
$profiling.getElementProperties(modelName)
Retrieve a collection of element property names from meta-model names.
Name | Type | Description | |
---|---|---|---|
Parameter(s) | modelName | java.lang.String | A meta-model name. |
Return | - | java.util.Collection<String> | A collection of |
$profiling.getElementProperties(element)
Retrieve a collection of element property names from elements.
Name | Type | Description | |
---|---|---|---|
Parameter(s) | element | com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element | An element. |
Return | - | java.util.Collection<String> | A collection of element property names. |
$profiling.getElementProperty(element, propertyName)
Retrieve property values of specified elements and property names.
Name | Type | Description | |
---|---|---|---|
Parameter(s) | element | com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element | An element. |
propertyName | java.lang.String | A property name. | |
Return | - | java.lang.Object | A property object. |
$profiling. getHumanPropertyName(element, propertyName)
Return text representing a property name.
Name | Type | Description | |
---|---|---|---|
Parameter(s) | propertyName | java.lang.String | A property name. |
element | com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element | An element. | |
Return | - | java.lang.String | Text representing a property name. |