Login | Register
My pages Projects Community openCollabNet

Discussions > modules-dev > get model elements in the class diagram

argouml
Discussion topic

Back to topic list

get model elements in the class diagram

Author Thapelo Tlhong <tt102 at ecs dot soton dot ac dot uk>
Full name Thapelo Tlhong <tt102 at ecs dot soton dot ac dot uk>
Date 2005-11-11 19:47:57 PST
Message Hi everyone
I'm working on UML plugin for Java code generation using Velocity. I was
wondering, how can I actually get the model elements from the current
model, What I currently have is
/*get all the model elements of type Class in the model*/
ModelManagementHelper modelMgmt = Model.getModelManage​mentHelper();
Collection classes = classes =
modelMgmt.getAllMode​lElementsOfKindWithM​odel(model,
metaTypes.getUMLClass() );
. . .
/*iterate over the elements extracting the attributes, operation etc */

But this returns me even the Java classes which have been declared as a
type for some attributes or operations in the model. What I want is to
only return those Classes that are depicted by my Class Diagram

Thanks you all
Thapelo

« Previous message in topic | 1 of 9 | Next message in topic »

Messages

Show all messages in topic

get model elements in the class diagram Thapelo Tlhong <tt102 at ecs dot soton dot ac dot uk> Thapelo Tlhong <tt102 at ecs dot soton dot ac dot uk> 2005-11-11 19:47:57 PST
     Re: [argouml-modules-dev] get model elements in the class diagram bobtarling Bob Tarling 2005-11-12 03:30:25 PST
         Re: [argouml-modules-dev] get model elements in the class diagram Thapelo Tlhong <tt102 at ecs dot soton dot ac dot uk> Thapelo Tlhong <tt102 at ecs dot soton dot ac dot uk> 2005-11-12 04:00:22 PST
             Re: [argouml-modules-dev] get model elements in the class diagram bobtarling Bob Tarling 2005-11-12 05:02:16 PST
                 Re: [argouml-modules-dev] get model elements in the class diagram Thapelo Tlhong <tt102 at ecs dot soton dot ac dot uk> Thapelo Tlhong <tt102 at ecs dot soton dot ac dot uk> 2005-11-12 06:35:12 PST
                     Re: [argouml-modules-dev] get model elements in the class diagram bobtarling Bob Tarling 2005-11-12 07:09:53 PST
                         Re: [argouml-modules-dev] get model elements in the class diagram bobtarling Bob Tarling 2005-11-12 07:14:17 PST
                             Re: [argouml-modules-dev] get model elements in the class diagram Thapelo Tlhong <tt102 at ecs dot soton dot ac dot uk> Thapelo Tlhong <tt102 at ecs dot soton dot ac dot uk> 2005-11-16 19:43:39 PST
                         Re: [argouml-modules-dev] get model elements in the class diagram Thapelo Tlhong <tt102 at ecs dot soton dot ac dot uk> Thapelo Tlhong <tt102 at ecs dot soton dot ac dot uk> 2005-11-12 08:44:09 PST
Messages per page: