Date: Fri, 29 Mar 2024 09:36:06 +0100 (CET) Message-ID: <1451335677.1737.1711701366787@nm-docs> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_1736_1831506893.1711701366787" ------=_Part_1736_1831506893.1711701366787 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.util.MDCustomi= zationForSysMLProfile 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.