Class DiagramImporter

java.lang.Object
berlin.yuna.survey.logic.DiagramImporter

public class DiagramImporter extends Object
The DiagramImporter imports diagrams/flows from a File or String with a DOT format
  • Constructor Details

    • DiagramImporter

      public DiagramImporter()
  • Method Details

    • read

      public FlowItem<?,?> read(String dot) throws IOException
      Reads a String with a DOT format
      Parameters:
      dot - String with dot format
      Returns:
      Returns imported flow
      Throws:
      IOException - Exception on any parse error
    • read

      public FlowItem<?,?> read(InputStream inputStream) throws IOException
      Reads a InputStream with a DOT format
      Parameters:
      inputStream - InputStream with dot format
      Returns:
      imported flow
      Throws:
      IOException - Exception on any parse error
    • read

      public FlowItem<?,?> read(File file) throws IOException
      Reads a File with a DOT format
      Parameters:
      file - File with dot format
      Returns:
      imported flow
      Throws:
      IOException - Exception on any parse error
    • read

      public FlowItem<?,?> read(Path path) throws IOException
      Reads a Path with a DOT format
      Parameters:
      path - Path with dot format
      Returns:
      imported flow
      Throws:
      IOException - Exception on any parse error
    • read

      public FlowItem<?,?> read(guru.nidi.graphviz.model.MutableGraph graph)
      Reads a MutableGraph with a DOT format
      Parameters:
      graph - MutableGraph with dot format
      Returns:
      imported flow
    • flowRegister

      public Set<Class<? extends FlowItem<?,?>>> flowRegister()
      FlowRegister is a set of known FlowItem which are recognised and used while parsing. Any missing item can lead to an error while the import.
      Returns:
      Set of known FlowItem
    • conditionRegister

      public Set<Class<? extends Condition<?>>> conditionRegister()
      ConditionRegister is a set of known Condition which are recognised and used while parsing. Any missing item can lead to an error while the import.
      Returns:
      Set of known Condition