Class LegacyModelizerImporter

java.lang.Object
lu.kbra.modelizer_next.json.LegacyModelizerImporter

public class LegacyModelizerImporter extends Object
Imports diagrams from the legacy Modelizer JSON structure into the current domain model.
  • Method Details

    • importFile

      public static ModelDocument importFile(File file) throws IOException
      Imports the file.
      Parameters:
      file - file to read or write
      Returns:
      the import file result
      Throws:
      IOException - if the operation cannot be completed
    • isLegacyFile

      public static boolean isLegacyFile(File file) throws IOException
      Checks whether legacy file is enabled or applies while converting JSON data.
      Parameters:
      file - file to read or write
      Returns:
      true if legacy file is enabled or applies; otherwise false
      Throws:
      IOException - if the operation cannot be completed