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

Summary: UML2MOF tagged values are not forwarded to MOF
Product: java Reporter: HolgerKnublauch <holgerknublauch>
Component: UnsupportedAssignee: issues@java <issues>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: Transformer with new mapTags methods

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.