| [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.
Hi
I actually don't know about association-end qualifiers...
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.
mh... could you please provide an example or a link?
thanks in advance Lorenzo
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
-- Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino ICQ# lbetto, 16080134 (GNU/Linux User # 158233) HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com http://www.myspace.com/supertrouperabba BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com http://www.gnu.org/software/src-highlite http://www.gnu.org/software/gengetopt http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net