Class ProjectManager

  • All Implemented Interfaces:
    IProjectManager

    public class ProjectManager
    extends java.lang.Object
    implements IProjectManager
    Manages a tasklist project / directory.
    • Constructor Summary

      Constructors 
      Constructor Description
      ProjectManager()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <S extends Source>
      void
      deleteSource​(S source)
      Delete a source file from the file system.
      Source getSource​(java.nio.file.Path path)
      Get source
      ProjectSource loadProject​(java.nio.file.Path rootDirectory)
      Load the project from the directory
      <S extends Source>
      void
      saveSource​(S source)
      Save the source
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProjectManager

        public ProjectManager()
    • Method Detail

      • deleteSource

        public <S extends Source> void deleteSource​(S source)
        Description copied from interface: IProjectManager
        Delete a source file from the file system. Take the path from Source.path
        Specified by:
        deleteSource in interface IProjectManager
        Type Parameters:
        S - type of the source object
        Parameters:
        source - the object to delete
      • loadProject

        public ProjectSource loadProject​(java.nio.file.Path rootDirectory)
        Load the project from the directory
        Specified by:
        loadProject in interface IProjectManager
        Parameters:
        rootDirectory - rootDirectory of the rootProject
        Returns:
      • saveSource

        public <S extends Source> void saveSource​(S source)
        Save the source
        Specified by:
        saveSource in interface IProjectManager
        Type Parameters:
        S -
        Parameters:
        source - the object to save
      • getSource

        public Source getSource​(java.nio.file.Path path)
        Get source
        Specified by:
        getSource in interface IProjectManager
        Parameters:
        path - of file to convert
        Returns: