Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Re: Primitive types
Re: Primitive types [message #626414] Tue, 15 April 2008 23:45
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
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/
Previous Topic:How to use Name Expressions
Next Topic:Derived property getter in Static Profile
Goto Forum:
  


Current Time: Thu Apr 25 16:09:27 GMT 2024

Powered by FUDForum. Page generated in 0.02818 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top