This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 31237 - UML2MOF tagged values are not forwarded to MOF
Summary: UML2MOF tagged values are not forwarded to MOF
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-19 20:16 UTC by HolgerKnublauch
Modified: 2003-02-26 23:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Transformer with new mapTags methods (31.94 KB, text/plain)
2003-02-19 20:17 UTC, HolgerKnublauch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description HolgerKnublauch 2003-02-19 20:16:31 UTC
Tagged values from the UML model are not forwarded 
correctly into the MOF model. This is because, for 
example, Poseidon generates something like:

<UML:TaggedValue xmi.id = 'a53'
    isSpecification = 'false'
    dataValue = 'edu.stanford.smi.protegex.xmi'>
    <UML:TaggedValue.type>
        <UML:TagDefinition xmi.idref = 'a54'/>
    </UML:TaggedValue.type>
</UML:TaggedValue>

<UML:TagDefinition xmi.id = 'a54' 
    isSpecification = 'false' 
    tagType = 'javax.jmi.packagePrefix'>
      <UML:TagDefinition.multiplicity>
        <UML:Multiplicity xmi.id = 'a244'>
          <UML:Multiplicity.range>
            <UML:MultiplicityRange xmi.id = 'a245' 
                lower = '1' upper = '1'/>
          </UML:Multiplicity.range>
        </UML:Multiplicity>
      </UML:TagDefinition.multiplicity>
    </UML:TagDefinition>

which is not handled by the mapTags method in Transformer 
(which expects every tag to have a name). Apparently, MOF 
either allows taggedValues to have a name or a type.

If have attached a new version of Transformer.java, where 
I modified the mapTags method (including a new helper 
method), that works well for my system. Now I get the 
packagePrefix and other tags correctly in the MOF.
Comment 1 HolgerKnublauch 2003-02-19 20:17:30 UTC
Created attachment 9050 [details]
Transformer with new mapTags methods
Comment 2 Martin Matula 2003-02-26 23:54:38 UTC
The changes you made to the UML2MOF tool were integrated.