SysML Plugin 19.0 LTR Documentation

Contents


You need to import com.nomagic.magicdraw.sysml.util.MDCustomizationForSysMLProfile to use this API class.

 

Get a string constant for each property of stereotype (tag)

Usage includes “MDCustomizationForSysMLProfile.STEREOTYPE_PROPERTY_NAME”.

For example, MDCustomizationForSysMLProfile.NUMBEROWNER_PREFIX_PROPERTY returns a string of “prefix”.


Get a stereotype element

Usage includes:

  • “MDCustomizationForSysMLProfile.getInstance(project).getStereotype()” - where project refers to the project which uses MD Customization for SysML Profile.
  • “MDCustomizationForSysMLProfile.getInstance(element).getStereotype()” - where element refers to the element in the project which uses MD Customization for SysML Profile.

For example, MDCustomizationForSysMLProfile.getInstance(project).getPartProperty() returns the reference to the «PartProperty» stereotype object.


Check if an element is stereotyped

Usage includes “MDCustomizationForSysMLProfile.isStereotype(Elem)” - where Elem is the element you would like to check.

For example, given an element “Elem”, MDCustomizationForSysMLProfile.isValueProperty(Elem) returns True if the element “Elem” has «ValueProperty» stereotype applied, and returns false otherwise.

 

  • No labels