Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » strange behavior when defining a profile
strange behavior when defining a profile [message #576474] Mon, 29 January 2007 07:21
Rafael Chaves is currently offline Rafael ChavesFriend
Messages: 362
Registered: July 2009
Senior Member
When I define the following profile named 'sample_profile':

<?xml version="1.0" encoding="UTF-8"?>
<uml:Profile xmi:version="2.1"
xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML"
xmi:id="_O3cisK9mEduaoJ8VsHbaPQ" name="sample_profile">
<packagedElement xmi:type="uml:Stereotype"
xmi:id="_P7ic8K9mEduaoJ8VsHbaPQ" name="sample_stereotype">
<ownedAttribute xmi:id="_Xjqr8K9mEduaoJ8VsHbaPQ" name="myProperty">
<type xmi:type="uml:PrimitiveType"
href="pathmap://UML_METAMODELS/UML.metamodel.uml#Integer"/>
</ownedAttribute>
</packagedElement>
</uml:Profile>

It results in a EPackage instance that describes the UML metamodel.
Also, if I try to apply this profile to any models I build, the model is
persisted in a way that stereotype applications are lost. The reason
seems to be that the XMI for such a model refers to stereotypes coming
from 'sample_profile' as if they were coming from 'uml':

<xmi:XMI xmi:version="2.1" (...)>
<uml:Model xmi:id="_2YHtEK9lEdu8D5FNufO7zw" name="sample_model">
(...)
</uml:Model>
<uml:sample_stereotype (...) />
</xmi:XMI>

Instead, I would expect the stereotype applications to appear as:

<sample_profile:sample_stereotype (...) />

The trigger to this problem seems to be that I am referring to a type
from the uml package (integer). If I remove the reference, the problem
goes away.

Am I doing anything wrong to cause this, or is this a bug?

Thanks,

Rafael
Previous Topic:Execution Occurrence linking to Lifeline
Next Topic:ConcurrencyModificationException CacheAdapter
Goto Forum:
  


Current Time: Thu Mar 28 14:57:05 GMT 2024

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

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

Back to the top