getting all attributes [message #508958] |
Wed, 20 January 2010 21:03 |
Randi Messages: 31 Registered: November 2009 |
Member |
|
|
Hello all,
What I want to do is loading an uml model(as xmi) with different kind of diagrams eg a classdiagram and a sequencediagram and printout all the elements and there attributes. Loading the xmi is OK , but when I can get all the elements from a classdiagram , but when I want to get all the elements of a sequencediagram, only the name of the diagam popsup. I use in my code for getting the types
//snippet
Type type
if( type instanceof Classifier )
//snippet
But it seems that for a sequencediagram(collaboration) it is not an instance of Classifier? Can anyone give me some advice to get all the elements and attributes (eg isLeaf) from a sequencediagram ?
Many thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.02234 seconds