Hi everyone,
I'm using java and omg api that provides something like:
org.omg.uml.behavioralelements.collaborations, or any suitable one

and using the above, I managed to retrieve all message names in different sequence diagrams, however, I need to get the name/id of each sequence diagram.
I could not quite get it!

this is a simple example on how I'm getting message names:

CollaborationsPackage collab = root.getCollaborations();
//checking sequence diagrams

/*
* first run:
* search for objects in sequence diagrams and get the corresponding class(es)
*/
ClassifierRoleClass classifierRoleClass = collab.getClassifierRole();
for(Iterator<ClassifierRole> it = classifierRoleClass.refAllOfClass().iterator(); it.hasNext(); ) {
ClassifierRole cRole = it.next();

textOutput.writeLn("checking object: " + cRole.getName());
/*
* find Class defining the Object
*/

Collection inst = cRole.getBase();
for(Iterator<UmlClass> iter = inst.iterator(); iter.hasNext(); ) {
UmlClass temp= iter.next();
textOutput.writeLn(" class: " + temp.getName()+" "+cRole.getName());
}
}

=================
All in all, I need to get the name each sequence diagram as named in the drawing software, which is ArgoUml in my case.
Any help/ suggestions will be most appreciated.