You can use $profiling to access MagicDraw meta-model information.


$profiling.getGeneralizationName(modelName)

Return a generalization model of modelName.

 Name Type Description 
Parameter(s)modelNamejava.lang.StringA 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.
 propertyNamejava.lang.StringA property
name.
Returnjava.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.StringA meta-model
name. 
 propertyNamejava.lang.String A property
name.
Return-java.lang.StringA 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. 
 propertyNamejava.lang.StringA property
name. 
Return-java.lang.StringA property
type name.


$profiling.getElementProperties(modelName)

Retrieve a collection of element property names from meta-model names.

  NameType Description 
Parameter(s) modelName  java.lang.StringA meta-model
name. 
Return java.util.Collection<String>

A collection of
element property
names. 


$profiling.getElementProperties(element)

Retrieve a collection of element property names from elements.

  NameType Description 
Parameter(s) element  com.nomagic.uml2.ext.magicdraw.classes.mdkernel.ElementAn 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.StringA property
name. 
Return-java.lang.ObjectA 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.ElementAn element. 
Returnjava.lang.StringText representing
a property name.