net.sourceforge.plantuml.xmi.XmiClassDiagramStandard Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.xmi;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Element;
import net.sourceforge.plantuml.abel.Entity;
import net.sourceforge.plantuml.classdiagram.ClassDiagram;
public class XmiClassDiagramStandard extends XmiClassDiagramAbstract implements XmlDiagramTransformer {
public XmiClassDiagramStandard(ClassDiagram classDiagram) throws ParserConfigurationException {
super(classDiagram);
for (final Entity ent : classDiagram.getEntityFactory().leafs()) {
// if (fileFormat == FileFormat.XMI_ARGO && isStandalone(ent) == false) {
// continue;
// }
final Element cla = createEntityNode(ent);
if (cla == null) {
continue;
}
ownedElementRoot.appendChild(cla);
done.add(ent);
}
// if (fileFormat != FileFormat.XMI_STANDARD) {
// for (final Link link : classDiagram.getLinks()) {
// addLink(link);
// }
// }
}
// private boolean isStandalone(IEntity ent) {
// for (final Link link : classDiagram.getLinks()) {
// if (link.getEntity1() == ent || link.getEntity2() == ent) {
// return false;
// }
// }
// return true;
// }
}