Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kieker-TeeTime-Stages
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeeTime
Kieker-TeeTime-Stages
Commits
942249fe
Commit
942249fe
authored
9 years ago
by
Sören Henning
Browse files
Options
Downloads
Patches
Plain Diff
test jaxb marshaling
parent
fc4eb759
No related branches found
No related tags found
1 merge request
!17
Get impletemented stages and Java 8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/kieker/analysis/graph/GraphTester.java
+23
-11
23 additions, 11 deletions
src/main/java/kieker/analysis/graph/GraphTester.java
with
23 additions
and
11 deletions
src/main/java/kieker/analysis/graph/GraphTester.java
+
23
−
11
View file @
942249fe
package
kieker.analysis.graph
;
package
kieker.analysis.graph
;
import
kieker.analysis.graph.export.BlueprintsExporter
;
import
kieker.analysis.graph.export.DotExporter
;
import
kieker.analysis.graph.impl.GraphImpl
;
import
kieker.analysis.graph.impl.GraphImpl
;
public
class
GraphTester
{
public
class
GraphTester
{
...
@@ -75,15 +73,29 @@ public class GraphTester {
...
@@ -75,15 +73,29 @@ public class GraphTester {
System
.
out
.
println
(
edge
.
getId
());
System
.
out
.
println
(
edge
.
getId
());
}
}
// node2.addEdgeTo(node11);
// GraphmlType graphmlType = new GraphmlType();
// graphmlType.getKey().add(new KeyType());
// Export to Blueprints
// graphmlType.getGraphOrData().add(new GraphType());
BlueprintsExporter
blueprintsExporter
=
new
BlueprintsExporter
(
graph
);
System
.
out
.
println
(
blueprintsExporter
.
export
());
// ERROR als Element ist nicht möglich, weil eine @XmlRootElement-Annotation fehlt
DotExporter
dotExporter
=
new
DotExporter
(
graph
);
/*
System
.
out
.
println
(
dotExporter
.
export
());
* 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
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment