Re: Automatic creation of PrimitiveTypes Package

Roy Feldman <[email protected]> 05 Dec 2002 16:45:48 -0500
Newsgroups gmane.comp.java.netbeans.modules.mdr.devel
Organization True Horizon Co Ltd
Message-ID <[email protected]>
I couldn't agree more.  I was just about to post a question 
about the handling of PrimitiveTypes while working
on the UML1.5 metamodel.

I think I am hearing a rallying cry, 
"All of the PrimitiveTypes, all of the time!!!!"
(in the javax.jmi.* package, of course) ;-)

roy

On Thu, 2002-12-05 at 01:23, Brian Smith wrote:
> Hi,
> 
> When the XMI Reader automatically generates the PrimitiveTypes package 
> (from a MOF 1.3 model), I think that is should make sure it generates 
> the javax.jmi.packagePrefix tag for it. Also, instead of including just 
> the datatypes that are actually used by the metamodel, I think it would 
> be better to always include all of them. That is, if the XMI Reader adds 
> the PrimitiveTypes package, it should always add the XMI equivalent of:
> 
> package PrimitiveTypes
> {
>     tag "*tag" : javax.jmi.packagePrefix = 'javax.jmi' on PrimitiveTypes
>     primitive type Boolean
>     primitive type Integer
>     primitive type Long
>     primitive type Float
>     primitive type Double
>     primitive type String
> }
> 
> Instead of just, e.g.:
> 
> package PrimitiveTypes {
>     primitive type String
>     primitive type Integer
> }
> 
> I think it is too confusing to have a different version of the 
> PrimitiveTypes package for each metamodel (e.g. some without "Boolean", 
> most without "Long", etc.). What do you think?
> 
> - Brian