[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.emf] Re: indexed aggregations/associations
|
- From: "Christian W. Damus" <cdamus@xxxxxxxxxx>
- Date: Tue, 05 Feb 2008 07:29:16 -0500
- Newsgroups: eclipse.tools.emf
- Organization: IBM Canada (Rational Software)
- User-agent: KNode/0.10.4
Hi, Lorenzo,
Do you mean, something like UML association-end qualifiers? Ecore doesn't
support that directly.
However, you can define a containment reference of some EObject type
extending EMap.Entry<K, V>. In this case, if the value is an EReference, I
think you should end up with an EMap<K, V> property that does what you
need, albeit with the overhead of an EObject for each entry.
HTH,
Christian
Lorenzo Bettini wrote:
> Hi
>
> I'd like some of my association releations to be indexed, e.g., with a
> map, so that they could be easily and efficiently searchable... however
> they're implemented with EList... is there a solution for this?
>
> I also noticed the HKey property, but this does not generate Java code,
> only a @model in the generated javadoc...
>
> thanks in advance
> Lorenzo
>