Class YmlToEmfConverter

java.lang.Object
be.kuleuven.cs.distrinet.sparta.io.convert.YmlToEmfConverter

public class YmlToEmfConverter extends Object
  • Constructor Details

  • Method Details

    • main

      public static void main(String[] args) throws IOException
      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

      public void saveToModel(YmlToEmfConverter.TxtModel model) throws IOException
      Throws:
      IOException
    • parseDataFlowEndpoints

      public static String[] parseDataFlowEndpoints(String entry)
      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.