Package berlin.yuna.survey.logic
Class DiagramImporter
- java.lang.Object
-
- berlin.yuna.survey.logic.DiagramImporter
-
public class DiagramImporter extends Object
-
-
Constructor Summary
Constructors Constructor Description DiagramImporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Class<? extends Condition<?>>>
conditionRegister()
ConditionRegister is a set of knownCondition
which are recognised and used while parsing.Set<Class<? extends FlowItem<?,?>>>
flowRegister()
FlowRegister is a set of knownFlowItem
which are recognised and used while parsing.FlowItem<?,?>
read(guru.nidi.graphviz.model.MutableGraph graph)
Reads aMutableGraph
with a DOT formatFlowItem<?,?>
read(File file)
Reads aFile
with a DOT formatFlowItem<?,?>
read(InputStream inputStream)
Reads aInputStream
with a DOT formatFlowItem<?,?>
read(String dot)
Reads aString
with a DOT formatFlowItem<?,?>
read(Path path)
Reads aPath
with a DOT format
-
-
-
Method Detail
-
read
public FlowItem<?,?> read(String dot) throws IOException
Reads aString
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 aInputStream
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 aFile
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 aPath
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 aMutableGraph
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 knownFlowItem
which are recognised and used while parsing. Any missing item can lead to an error while the import.- Returns:
- Set of known
FlowItem
-
-