All Known Implementing Classes:
DrawflowGraphFormat

public interface GraphFormat
Represents a graph format, e.g., a specific JSON structure that can be applied on UI level.
Author:
Holger Eichelberger, SSE
  • Method Details

    • getName

      String getName()
      Returns the name to address/access this format.
      Returns:
      the unique name
    • getFormatKind

      String getFormatKind()
      Returns the kind of format produced.
      Returns:
      the format kind, e.g., XML, JSON, ...
    • toString

      Turns graph into this format.
      Parameters:
      graph - the graph, may be null
      Returns:
      the formatted graph, an empty graph if graph is null
      Throws:
      ExecutionException - if the translation fails
    • fromString

      Parses graph from this format into an IVML graph structure.
      Parameters:
      graph - the graph, may be null
      factory - a factory to be used to create graph instances
      varProvider - the provider allowing to access variables
      Returns:
      the IVML graph structure, an empty graph if graph is null
      Throws:
      ExecutionException - if the translation fails