[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Re: indexed aggregations/associations

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
>