Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF association
EMF association [message #962814] Mon, 29 October 2012 10:53 Go to next message
Taimo Maier is currently offline Taimo MaierFriend
Messages: 14
Registered: October 2012
Junior Member
Hello together,

is there something similar in EMF to create an assocation like in UML:

Association createAssociation(boolean end1IsNavigable,
AggregationKind end1Aggregation,
java.lang.String end1Name,
int end1Lower,
int end1Upper,
Type end1Type,
boolean end2IsNavigable,
AggregationKind end2Aggregation,
java.lang.String end2Name,
int end2Lower,
int end2Upper)

I just want to create assocations between EClasses, but the method createAssociation() belongs to the org.eclipse.uml2.uml.Type and not the EMF.

Taimo
Re: EMF association [message #962832 is a reply to message #962814] Mon, 29 October 2012 11:02 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 26289
Registered: July 2009
Senior Member
Taimo,

Comments below.

On 29/10/2012 11:53 AM, Taimo Maier wrote:
> Hello together,
>
> is there something similar in EMF to create an assocation like in UML:
>
> Association createAssociation(boolean end1IsNavigable,
> AggregationKind end1Aggregation,
> java.lang.String end1Name,
> int end1Lower,
> int end1Upper,
> Type end1Type,
> boolean end2IsNavigable,
> AggregationKind end2Aggregation,
> java.lang.String end2Name,
> int end2Lower,
> int end2Upper)
>
> I just want to create assocations between EClasses, but the method
> createAssociation() belongs to the org.eclipse.uml2.uml.Type and not
> the EMF.
In Ecore you can set an EReference's eOpposite to define a bidirectional
reference.
>
> Taimo
Re: EMF association [message #963126 is a reply to message #962832] Mon, 29 October 2012 15:43 Go to previous message
Taimo Maier is currently offline Taimo MaierFriend
Messages: 14
Registered: October 2012
Junior Member
Okay thank you!
Previous Topic:[CDO] PackageNotFoundException when committing a transaction
Next Topic:[CDO - MongoDB] - After first write doesn't restart
Goto Forum:
  


Current Time: Mon Dec 22 15:53:54 GMT 2014

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

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