Skip to main content



      Home
Home » Modeling » EMF » EMF association
EMF association [message #962814] Mon, 29 October 2012 06:53 Go to next message
Eclipse UserFriend
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 07:02 Go to previous messageGo to next message
Eclipse UserFriend
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 11:43 Go to previous message
Eclipse UserFriend
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: Tue Jul 22 20:47:28 EDT 2025

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

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

Back to the top