Re: "clustering" stereotyped dependency ignored by the UML2 MOF tool ?

Martin Matula <[email protected]> Thu, 29 Jul 2004 15:47:19 +0200
Newsgroups gmane.comp.java.netbeans.modules.mdr.devel
Message-ID <[email protected]>
Hi Rem,

SCHNEKENBURGER Remi CRIT wrote:

> I have several packages stereotyped "metamodel". These package should 
> be linked using the MOF element "import". So I use, as explained in 
> the table, a dependency stereotyped "clustering".

Are you sure you want to cluster the packages? Or you just want to 
import them?

> When I try to import the metamodel in MDR explorer with Netbeans, I 
> have the picture representing a link between 2 Metamodels, with the 
> name given to the dependency. When I am generating the XMI file 
> representing the metamodel, uml2mof tells that an instance of the 
> dependency is ignored.

Yes, that's fine - dependencies are a special case - they are handled at 
the end of the transformation - the message comes from the first phase 
of the transformation which correctly ignores them. I agree it is 
confusing. I guess I should remove the "Ignoring.." messages completely.

> Why do I have such a message? Is the metamodel loaded correctly ? I 
> have seen that these messages are present when there is a hierarchy 
> between the packages. Is the fact that some packages are nested is 
> forbidden by the UML2MOF tool?

No, this is not forbidden at all.
You can verify that the relationship is really transformed to MOF by 
loading your metamodel into MDR running in NetBeans 3.5.1 or 3.6 and 
browse though the metamodel in MDR Browser and check whether you can see 
the import.
Regards,
Martin