mirror of
https://github.com/octoleo/plantuml.git
synced 2024-12-22 02:49:06 +00:00
Fix package and (temporary) remove generalization
This commit is contained in:
parent
d551aa488a
commit
934a1c357b
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user