EMF association [message #962814] |
Mon, 29 October 2012 10:53 |
Taimo Maier 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 |
Ed Merks Messages: 33136 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
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.01969 seconds