Package ch.zhaw.tasklist.core
Interface IProjectManager
-
- All Known Implementing Classes:
ProjectManager
public interface IProjectManager
AIProjectManager
is responsible for loading and savingSource
Objects from the file system and serialize theSource
classes 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.Source
getSource(java.nio.file.Path path)
Gets file of the path and converts it to aSource
.ProjectSource
loadProject(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
-
-