Date: Fri, 29 Mar 2024 14:29:18 +0100 (CET) Message-ID: <2039892638.2109.1711718958932@nm-docs> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_2108_497385908.1711718958932" ------=_Part_2108_497385908.1711718958932 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
You need to import com.nomagic.magicdraw.sysml.uti= l.MDCustomizationForSysMLProfile to use this API class.
Get a string constant for each property of stereotype (tag)
Usage includes =E2=80=9CMDCustomizationForSysMLProfile.STEREOTYPE_PROPER= TY_NAME=E2=80=9D.
For example, MDCustomizationForSysMLProfile.NUMBEROWNER_PREFIX_PROPERTY = returns a string of =E2=80=9Cprefix=E2=80=9D.
Get a stereotype element
Usage includes:
For example, MDCustomizationForSysMLProfile.getInstance(project).getPart= Property() returns the reference to the =C2=ABPartProperty=C2=BB stereotype= object.
Check if an element is stereotyped
Usage includes =E2=80=9CMDCustomizationForSysMLProfile.isStereotype(Elem= )=E2=80=9D - where Elem is the element you would like to check.
For example, given an element =E2=80=9CElem=E2=80=9D, MDCustomizationFor= SysMLProfile.isValueProperty(Elem) returns True if the element =E2=80=9CEle= m=E2=80=9D has =C2=ABValueProperty=C2=BB stereotype applied, and returns fa= lse otherwise.