Class DiagramImporter

    • Constructor Detail

      • DiagramImporter

        public DiagramImporter()
    • Method Detail

      • 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