Package ch.zhaw.tasklist.core
Interface IProjectManager
-
- All Known Implementing Classes:
ProjectManager
public interface IProjectManagerAIProjectManageris responsible for loading and savingSourceObjects from the file system and serialize theSourceclasses to a string representation and vice versa.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <S extends Source>
voiddeleteSource(S source)Delete a source file from the file system.SourcegetSource(java.nio.file.Path path)Gets file of the path and converts it to aSource.ProjectSourceloadProject(java.nio.file.Path rootDirectory)Load the RootProject from the file system.<S extends Source>
voidsaveSource(S source)Save a source object to the file system.
-
-
-
Method Detail
-
loadProject
ProjectSource loadProject(java.nio.file.Path rootDirectory)
Load the RootProject from the file system.- Parameters:
rootDirectory- rootDirectory of the rootProject- Returns:
- the RootProjectSource
-
saveSource
<S extends Source> void saveSource(S source)
Save a source object to the file system. Take the path fromSource.path- Type Parameters:
S- type of the source object- Parameters:
source- the object to save
-
deleteSource
<S extends Source> void deleteSource(S source)
Delete a source file from the file system. Take the path fromSource.path- Type Parameters:
S- type of the source object- Parameters:
source- the object to delete
-
-