mirror of
https://github.com/octoleo/plantuml.git
synced 2024-12-22 10:59:01 +00:00
Fix state id in Scxml export
This commit is contained in:
parent
6979fb6d55
commit
aa53729752
@ -55,6 +55,7 @@ import org.w3c.dom.Element;
|
|||||||
|
|
||||||
import net.sourceforge.plantuml.Guillemet;
|
import net.sourceforge.plantuml.Guillemet;
|
||||||
import net.sourceforge.plantuml.baraye.EntityImp;
|
import net.sourceforge.plantuml.baraye.EntityImp;
|
||||||
|
import net.sourceforge.plantuml.baraye.Quark;
|
||||||
import net.sourceforge.plantuml.cucadiagram.Display;
|
import net.sourceforge.plantuml.cucadiagram.Display;
|
||||||
import net.sourceforge.plantuml.cucadiagram.LeafType;
|
import net.sourceforge.plantuml.cucadiagram.LeafType;
|
||||||
import net.sourceforge.plantuml.cucadiagram.Link;
|
import net.sourceforge.plantuml.cucadiagram.Link;
|
||||||
@ -162,9 +163,8 @@ public class ScxmlStateDiagramStandard {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String getId(EntityImp entity) {
|
private String getId(EntityImp entity) {
|
||||||
String result = entity.getDisplay().get(0).toString();
|
final Quark quark = entity.getQuark();
|
||||||
result = result.replaceAll("\\*", "");
|
return quark.getName().replaceAll("\\*", "");
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void transformerXml(OutputStream os) throws TransformerException, ParserConfigurationException {
|
public void transformerXml(OutputStream os) throws TransformerException, ParserConfigurationException {
|
||||||
|
Loading…
Reference in New Issue
Block a user