Re: Automatic creation of PrimitiveTypes Package
Martin Matula <[email protected]> Thu, 05 Dec 2002 10:41:39 +0100
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.devel |
|---|---|
| Message-ID | <[email protected]> |
I agree.
Martin
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