Interface StorageConnector
-
- All Known Implementing Classes:
DataStorage,XmlConnector
public interface StorageConnectorGeneral interface for this creation of arbitrary connectors, able to saveModelspersistently.- Author:
- Kapeluch, El-Sharkawy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PathEnvironmentgetPathEnvironment()Returns the path environment used for making paths relative.java.lang.StringgetProjectID()Returns the UUID of a given pl project.voidloadModels(Model... models)Loads the specified models.voidloadModels(PersistentProject project)Method for loading models out of a persistent file/database.voidsaveModels(PersistentProject project)Saves data from given model to storage.
-
-
-
Method Detail
-
loadModels
void loadModels(Model... models) throws PersistenceException
Loads the specified models.- Parameters:
models- the models to load- Throws:
PersistenceException- in case of reading errors
-
loadModels
void loadModels(PersistentProject project) throws PersistenceException
Method for loading models out of a persistent file/database.- Parameters:
project- APersistentProjectholding an empty array ofModelsfor storing the information read in a persistent file/database. These models must only contain the correctModelTypes, for managing which parts should be loaded.- Throws:
PersistenceException- Will be thrown if an error is occurred during reading the persistent information.
-
saveModels
void saveModels(PersistentProject project) throws PersistenceException
Saves data from given model to storage.- Parameters:
project- The information which should be saved in non ivml files.- Throws:
PersistenceException- Will be thrown if an error is occurred during reading the persistent information.
-
getProjectID
java.lang.String getProjectID()
Returns the UUID of a given pl project.- Returns:
- the id or null if the specified project has no configuration file.
-
getPathEnvironment
PathEnvironment getPathEnvironment()
Returns the path environment used for making paths relative.- Returns:
- the path environment
-
-