Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: themiyac on August 05, 2015, 11:36:49 pm
-
Is there a way that I can access the UML Profile located under project resources using the EA Java API?
-
Nope. Except you know where the XML was stored and read that by hand.
q.
-
How can I get to know through the API if a particular Profile was applied successfully?
-
Also I have a Element with a Stereotype Applied from a Particular Profile that I have Applied. How can I get the name of that profile from the API?
-
a) use Repository.IsTechnologyEnabled (string ID)
b) I guess you need to dive into t_xref. If you have elements from a MDG ou will find entries like @STEREO;Name=BPELProcess;FQName=BPMN2.0::BPELProcess;@ENDSTEREO in the Description. Name contains Stereotypes and Client the guid of the element.
q.