I have Actor and Sequences as life lines in my sequence diagram in Enterprise Architect.
.
This diagram has a fragment also in it. I tried to fetch the diagram object through java API.
I'm able to get all the Actor, Sequence and Fragment information from the API. But I am unable to differentiate which among these are life lines.
Is there any way to differentiate Lifelines and other elements through API or through EA Database?
Little more hint about how to approach this problem would be more appreciated.
Code snippet that i'm using as follows . .
Diagram sequenceDiagram = rep.GetDiagramByGuid(seqdiagGuid);
Collection<DiagramObject> diagObjs = sequenceDiagram.GetDiagramObjects();
for (DiagramObject obj : diagObjs) {
Element el = rep.GetElementByID(obj.GetElementID());
// How to differenciate whether this el is a lifeline?
}
Edited with few more information and screen shots to give some more clarity
I have dropped a class from toolbox. While copying i selected the option as "Lifeline". For this newly added class, I am expecting el.type would give value as "LifeLine" but unfortunately it is giving "Object" only. Now my question is how this object can be identified as Lifeline of type Class?
Hope this gives more clarity.