public class GraphMLModelExporter extends Object
GraphMLModel to a GraphML string.| Modifier and Type | Method and Description |
|---|---|
static Optional<String> |
export(GraphMLModel graphml)
Exports a JAXB
GraphMLModel instance to a valid GraphML string, using UTF-8 as a default
Charset, turning off the formatting and turning on the strict XML validation on the output. |
static Optional<String> |
export(GraphMLModel graphml,
boolean formatOutput)
Exports a JAXB
GraphMLModel instance to a valid GraphML string, using UTF-8 as a default
Charset, and turning on the strict XML validation on the output. |
static Optional<String> |
export(GraphMLModel graphml,
Charset charset,
boolean formatOutput)
Exports a JAXB
GraphMLModel instance to a valid GraphML string, turning on the strict XML validation on
the output. |
static Optional<String> |
export(GraphMLModel graphml,
Charset charset,
boolean formatOutput,
boolean validate,
boolean strictValidation)
Exports a JAXB
GraphMLModel instance to a valid GraphML string. |
public static final Optional<String> export(GraphMLModel graphml)
GraphMLModel instance to a valid GraphML string, using UTF-8 as a default
Charset, turning off the formatting and turning on the strict XML validation on the output.graphml - the JAXB model instance.public static final Optional<String> export(GraphMLModel graphml, boolean formatOutput)
GraphMLModel instance to a valid GraphML string, using UTF-8 as a default
Charset, and turning on the strict XML validation on the output.graphml - the JAXB model instance.formatOutput - a flag to tell whether or not the output should fit on a single line.public static final Optional<String> export(GraphMLModel graphml, Charset charset, boolean formatOutput)
GraphMLModel instance to a valid GraphML string, turning on the strict XML validation on
the output.graphml - the JAXB model instance.charset - the Charset to use for the GraphML output.formatOutput - a flag to tell whether or not the output should fit on a single line.public static final Optional<String> export(GraphMLModel graphml, Charset charset, boolean formatOutput, boolean validate, boolean strictValidation)
GraphMLModel instance to a valid GraphML string.graphml - the JAXB model instance.charset - the Charset to use for the GraphML output.formatOutput - a flag to tell whether or not the output should fit on a single line.validate - a flag to tell whether or not the output should be validated against an XSD.strictValidation - a flag to tell whether or not a validation error should fail the export.Copyright © 2020. All rights reserved.