Class YmlToEmfConverter
java.lang.Object
be.kuleuven.cs.distrinet.sparta.io.convert.YmlToEmfConverter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe representation of a very simple txtmodel of a DFD. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidRun the YmlToEmfConverter from the command line.static String[]parseDataFlowEndpoints(String entry) Parse a data-flow entry of the form"sender->recipient"into its two endpoints.void
-
Constructor Details
-
YmlToEmfConverter
- Throws:
IOException
-
-
Method Details
-
main
Run the YmlToEmfConverter from the command line. The first argument is the file name.- Parameters:
args- Command line arguments. The first argument should be the filename.- Throws:
IOException
-
saveToModel
- Throws:
IOException
-
parseDataFlowEndpoints
Parse a data-flow entry of the form"sender->recipient"into its two endpoints. The entry must contain exactly one"->"separator and both endpoints must be non-blank.- Parameters:
entry- the raw data-flow entry.- Returns:
- a two-element array
[sender, recipient](both trimmed). - Throws:
IllegalArgumentException- if the entry is null, does not contain exactly one"->"separator, or has an empty endpoint.
-