Primitive types [message #418430] |
Tue, 15 April 2008 23:23 |
Eclipse User |
|
|
|
Originally posted by: comouraf-lixo.yahoo.fr
Hi,
I have a profile with some UML-inspired primitive types (like
UnlimitedNatural, Real, etc.). However, when I generate the classes, there
are many errors complaining about non-existing types. For the lack of a
better idea, I tried to set up the "instanceClassName" attribute with an
existing java primitive type, imagining that the generator would use the
java types instead, but it did not work. So, my question is: how could I
force the generator to replace model datatypes with "good" java types (for
example, Integer for UnlimitedNatural, etc.)?
Thanks for any clue,
César
|
|
|
Re: Primitive types [message #418432 is a reply to message #418430] |
Tue, 15 April 2008 23:45 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
César,
It sounds like a UML question to me, so it's best to ask it on the UML
newsgroup, which I've added to the "to" list of the reply. If an
EDataType has a proper instanceClassName, like float, or int, that will
be used by the generator. Just have a look at the Ecore model itself at
things like EInt or EFloat as examples.
kaiserlautern wrote:
> Hi,
>
> I have a profile with some UML-inspired primitive types (like
> UnlimitedNatural, Real, etc.). However, when I generate the classes,
> there are many errors complaining about non-existing types. For the
> lack of a better idea, I tried to set up the "instanceClassName"
> attribute with an existing java primitive type, imagining that the
> generator would use the java types instead, but it did not work. So,
> my question is: how could I force the generator to replace model
> datatypes with "good" java types (for example, Integer for
> UnlimitedNatural, etc.)?
>
> Thanks for any clue,
>
> César
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.03465 seconds