1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-12-22 19:09:03 +00:00

Fix package and (temporary) remove generalization

This commit is contained in:
Arnaud Roques 2023-02-22 20:21:30 +01:00
parent d551aa488a
commit 934a1c357b

View File

@ -52,25 +52,23 @@ public class XmiClassDiagramArgo extends XmiClassDiagramAbstract implements XmlD
addPackage(ownedElementRoot, classDiagram.getRootGroup()); addPackage(ownedElementRoot, classDiagram.getRootGroup());
for (final Link link : classDiagram.getLinks()) // for (final Link link : classDiagram.getLinks())
addLink(link); // addLink(link);
} }
final protected Element createElementPackage(Entity group) { final protected Element createElementPackage(Entity group) {
final Element ownedElement1 = document.createElement("UML:Namespace.ownedElement");
final Element umlPackage = document.createElement("UML:Package"); final Element umlPackage = document.createElement("UML:Package");
ownedElement1.appendChild(umlPackage);
umlPackage.setAttribute("xmi.id", group.getUid()); umlPackage.setAttribute("xmi.id", group.getUid());
umlPackage.setAttribute("name", group.getDisplay().get(0).toString()); umlPackage.setAttribute("name", group.getDisplay().get(0).toString());
final Element ownedElement2 = document.createElement("UML:Namespace.ownedElement"); final Element namespaceOwnedElement = document.createElement("UML:Namespace.ownedElement");
umlPackage.appendChild(ownedElement2); umlPackage.appendChild(namespaceOwnedElement);
addPackage(ownedElement2, group); addPackage(namespaceOwnedElement, group);
return ownedElement1; return umlPackage;
} }