Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

...

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.

...

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.

...

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.

...

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. 

...

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.

...

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.

...

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. 

...