Class ProjectUtilities

java.lang.Object
de.uni_hildesheim.sse.easy.ant.modelcopy.ProjectUtilities

public class ProjectUtilities extends Object
Utility functions needed by this tool while handling Projects.
Author:
El-Sharkawy
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static net.ssehub.easy.basics.modelManagement.ModelManagementException
    Stores an exception which may occur during initialization of this class.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.ssehub.easy.varModel.model.Project
    loadProject(String projectName)
    Load an IVML File as project.
    static void
    saveProject(File destFolder, net.ssehub.easy.varModel.model.Project project)
    Saves the given project to the specified folder.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • intialException

      private static net.ssehub.easy.basics.modelManagement.ModelManagementException intialException
      Stores an exception which may occur during initialization of this class.
  • Constructor Details

    • ProjectUtilities

      public ProjectUtilities()
  • Method Details

    • loadProject

      public static net.ssehub.easy.varModel.model.Project loadProject(String projectName) throws net.ssehub.easy.basics.modelManagement.ModelManagementException, IOException
      Load an IVML File as project.
      Parameters:
      projectName - of the project file to load
      Returns:
      the loaded ivml file as project.
      Throws:
      IOException - if an error occurred due reading the ivml file
      net.ssehub.easy.basics.modelManagement.ModelManagementException
    • saveProject

      public static void saveProject(File destFolder, net.ssehub.easy.varModel.model.Project project) throws IOException
      Saves the given project to the specified folder.
      Parameters:
      destFolder - The folder where the project shall be saved to.
      project - The project to be saved.
      Throws:
      IOException - if the file exists but is a directory rather than a regular file, does not exist but cannot be created, or cannot be opened for any other reason