diff --git a/src/main/java/kieker/analysis/graph/GraphTester.java b/src/main/java/kieker/analysis/graph/GraphTester.java index 6015525c2995651cc4e210b8dce4922aaa288abe..754c4787d7a60fc0306de5b0ea385ab9c75d1806 100644 --- a/src/main/java/kieker/analysis/graph/GraphTester.java +++ b/src/main/java/kieker/analysis/graph/GraphTester.java @@ -1,7 +1,5 @@ package kieker.analysis.graph; -import kieker.analysis.graph.export.BlueprintsExporter; -import kieker.analysis.graph.export.DotExporter; import kieker.analysis.graph.impl.GraphImpl; public class GraphTester { @@ -75,15 +73,29 @@ public class GraphTester { System.out.println(edge.getId()); } - // node2.addEdgeTo(node11); - - // Export to Blueprints - BlueprintsExporter blueprintsExporter = new BlueprintsExporter(graph); - System.out.println(blueprintsExporter.export()); - - DotExporter dotExporter = new DotExporter(graph); - System.out.println(dotExporter.export()); - + // GraphmlType graphmlType = new GraphmlType(); + // graphmlType.getKey().add(new KeyType()); + // graphmlType.getGraphOrData().add(new GraphType()); + + // ERROR als Element ist nicht möglich, weil eine @XmlRootElement-Annotation fehlt + + /* + * try { + * JAXBContext context = JAXBContext.newInstance(GraphmlType.class); + * Marshaller m = context.createMarshaller(); + * m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE); + * m.marshal(graphmlType, System.out); + * } catch (JAXBException e) { + * // TODO Auto-generated catch block + * e.printStackTrace(); + * } + */ + + // Use object factory + + // http://blog.bdoughan.com/2012/07/jaxb-and-root-elements.html + // http://stackoverflow.com/questions/24519449/unable-to-marshal-type-as-an-element-because-it-is-missing-an-xmlrootelement-an + // http://stackoverflow.com/questions/819720/no-xmlrootelement-generated-by-jaxb } }