|
|
|
Re: Class Cast exception thrown for an EMap during model instantiation [message #1053563 is a reply to message #1053548] |
Mon, 06 May 2013 14:32 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Greg,
Comments below.
On 06/05/2013 3:21 PM, Greg Mising name wrote:
> Hi Ed,
>
> Yes, it's a multi-valued containment. I've attached a screenshot of the model objects. LocaleStringMap has an instance class name of java.util.Map$Entry, so the three references are implemented as EMaps.
>
> The three references are initialized as follows:
>
> protected NamedModelObjectImpl() {
> super();
> localeName = new BasicEMap<String,String>();
> localeDescription = new BasicEMap<String,String>();
> localeTooltip = new BasicEMap<String,String>();
You hand wrote this? Generated implementations would use EcoreEMap, so
this doesn't look generated.
> }
>
>
> Thanks for your help.
>
> Cheers,
> Greg
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.03561 seconds