Re: [mdr-users] Java attributes in JMI code

Martin Matula <[email protected]> Mon, 19 Sep 2005 23:54:18 +0200
Newsgroups gmane.comp.java.netbeans.modules.mdr.user
Message-ID <[email protected]>
Hi Hans,
this is not possible. In fact, it should not even be possible to model 
java.lang.Object. The fact that it works is just a side-effect of a 
relaxed checking.
You can use only MOF types in your metamodels.
Martin

SainTiss wrote:

>Hi,
>
>Is it somehow possible to model an attribute in a MOF model as being
>e.g. of type "java.util.HashMap"?
>Modeling attributes of type "java.lang.Object" seems to work, and they
>show up in the JMI interfaces, if Object is modeled as a MOF
>PrimitiveType. However, MOF seems to prefix all similar PrimitiveTypes
>with "java.lang", while for HashMap I need java.util. Putting HashMap in
>a java.util package doesn't seem to work, as JMI code generation
>apparently ignores that...
>
>Any suggestions?
>
>Thanks,
>
>Hans
>  
>