Package berlin.yuna.survey.logic
Class DiagramImporter
java.lang.Object
berlin.yuna.survey.logic.DiagramImporter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConditionRegister is a set of knownCondition
which are recognised and used while parsing.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<?,
?> Reads aFile
with a DOT formatFlowItem<?,
?> read
(InputStream inputStream) Reads aInputStream
with a DOT formatFlowItem<?,
?> Reads aString
with a DOT formatFlowItem<?,
?> Reads aPath
with a DOT format
-
Constructor Details
-
DiagramImporter
public DiagramImporter()
-
-
Method Details
-
read
Reads aString
with a DOT format- Parameters:
dot
-String
with dot format- Returns:
- Returns imported flow
- Throws:
IOException
- Exception on any parse error
-
read
Reads aInputStream
with a DOT format- Parameters:
inputStream
-InputStream
with dot format- Returns:
- imported flow
- Throws:
IOException
- Exception on any parse error
-
read
Reads aFile
with a DOT format- Parameters:
file
-File
with dot format- Returns:
- imported flow
- Throws:
IOException
- Exception on any parse error
-
read
Reads aPath
with a DOT format- Parameters:
path
-Path
with dot format- Returns:
- imported flow
- Throws:
IOException
- Exception on any parse error
-
read
Reads aMutableGraph
with a DOT format- Parameters:
graph
-MutableGraph
with dot format- Returns:
- imported flow
-
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
-
conditionRegister
ConditionRegister is a set of knownCondition
which are recognised and used while parsing. Any missing item can lead to an error while the import.- Returns:
- Set of known
Condition
-