1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-12-22 10:59:01 +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());
for (final Link link : classDiagram.getLinks())
addLink(link);
// for (final Link link : classDiagram.getLinks())
// addLink(link);
}
final protected Element createElementPackage(Entity group) {
final Element ownedElement1 = document.createElement("UML:Namespace.ownedElement");
final Element umlPackage = document.createElement("UML:Package");
ownedElement1.appendChild(umlPackage);
umlPackage.setAttribute("xmi.id", group.getUid());
umlPackage.setAttribute("name", group.getDisplay().get(0).toString());
final Element ownedElement2 = document.createElement("UML:Namespace.ownedElement");
umlPackage.appendChild(ownedElement2);
final Element namespaceOwnedElement = document.createElement("UML:Namespace.ownedElement");
umlPackage.appendChild(namespaceOwnedElement);
addPackage(ownedElement2, group);
addPackage(namespaceOwnedElement, group);
return ownedElement1;
return umlPackage;
}