Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Creating an AssociationClass
Creating an AssociationClass [message #477426] Thu, 22 May 2008 18:50 Go to next message
ueli.brawand is currently offline ueli.brawandFriend
Messages: 27
Registered: July 2009
Location: Berne, Switzerland
Junior Member
Hi NG

This is perhaps a silly question, but I don't realy know how to create an
AssociationClass and connect it with the both associated classes.
How can I do this and where do I find documentation or help about such silly
topics?

Thanx and regards
Erny
Re: Creating an AssociationClass [message #477458 is a reply to message #477426] Wed, 28 May 2008 21:47 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Erny,

.... not a silly question ... you can create an AssociationClass similar to
how you would create a uml::Class. From Package, you can call
createOwnedType() for example. Since this type is both a Class and an
Association, you should add to the ownedEnds() collection etc. and fill out
any other properties you may need.

There currently is no complete documentation on how to create all the
various types using the UML2 API. One can generally figure out how to do
this by discovery through the example uml editor. The getting started
articles also have some information. There is a bugzilla open for writing
such documentation.

Feel free to add to the Wiki anything that you might discover along the way.
Others could greatly benefit from your input.

Cheers,
- James.



"ubrawand" <ueli.brawand@bluewin.ch> wrote in message
news:g14f93$tjc$1@build.eclipse.org...
> Hi NG
>
> This is perhaps a silly question, but I don't realy know how to create an
> AssociationClass and connect it with the both associated classes.
> How can I do this and where do I find documentation or help about such
> silly topics?
>
> Thanx and regards
> Erny
>
Re: Creating an AssociationClass [message #626640 is a reply to message #477426] Wed, 28 May 2008 21:47 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Erny,

.... not a silly question ... you can create an AssociationClass similar to
how you would create a uml::Class. From Package, you can call
createOwnedType() for example. Since this type is both a Class and an
Association, you should add to the ownedEnds() collection etc. and fill out
any other properties you may need.

There currently is no complete documentation on how to create all the
various types using the UML2 API. One can generally figure out how to do
this by discovery through the example uml editor. The getting started
articles also have some information. There is a bugzilla open for writing
such documentation.

Feel free to add to the Wiki anything that you might discover along the way.
Others could greatly benefit from your input.

Cheers,
- James.



"ubrawand" <ueli.brawand@bluewin.ch> wrote in message
news:g14f93$tjc$1@build.eclipse.org...
> Hi NG
>
> This is perhaps a silly question, but I don't realy know how to create an
> AssociationClass and connect it with the both associated classes.
> How can I do this and where do I find documentation or help about such
> silly topics?
>
> Thanx and regards
> Erny
>
Previous Topic:static profiles with model libraries
Next Topic:UML State Machine and its context
Goto Forum:
  


Current Time: Thu Apr 25 11:23:08 GMT 2024

Powered by FUDForum. Page generated in 0.04415 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top