Note in XMI output becomes a class

0 votes
asked Jan 26, 2017 in Bug by plant-conn (120 points)
@startuml

class Test {

}

note "PayIn (Coins), GiftCard(?)" as TestNote
        Test .. TestNote

@enduml

becomes:

<?xml version="1.0" encoding="UTF-8"?>
<XMI xmlns:UML="href://org.omg/UML/1.3" xmi.version="1.1">
    <XMI.header>
        <XMI.metamodel xmi.name="UML" xmi.version="1.3"/>
    </XMI.header>
    <XMI.content>
        <UML:Model name="PlantUML" xmi.id="model1">
            <UML:Namespace.ownedElement>
                <UML:Class name="Test" namespace="model1" xmi.id="cl0002">
                    <UML:Classifier.feature/>
                </UML:Class>
                <UML:Class name="PayIn (Coins), GiftCard(?)" namespace="model1" xmi.id="cl0003">
                    <UML:Classifier.feature/>
                </UML:Class>
                <UML:Association namespace="model1" xmi.id="ass5">
                    <UML:Association.connection>
                        <UML:AssociationEnd association="ass5" type="cl0002" xmi.id="end6">
                            <UML:AssociationEnd.participant/>
                        </UML:AssociationEnd>
                        <UML:AssociationEnd association="ass5" type="cl0003" xmi.id="end7">
                            <UML:AssociationEnd.participant/>
                        </UML:AssociationEnd>
                    </UML:Association.connection>
                </UML:Association>
            </UML:Namespace.ownedElement>
        </UML:Model>
    </XMI.content>
</XMI>

Not sure what should happen to a note in xmi output, but it should not become a class. Maybe it should become an attribute of the class its related to or something like UML:Note parent="classid" ... ? 

1 Answer

0 votes
answered Jan 27, 2017 by plantuml (294,960 points)
Thanks for the feedback!

In the last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

we do not export the note anymore since it does not make sense.

Tell us if it's not working for you.

Regards
commented Jan 27, 2017 by plant-conn (120 points)
I can confirm, that its working :) Thx!
...