Interface IModelManagementRepository<M extends IModel>
- Type Parameters:
M- the specific type of model
- All Known Implementing Classes:
ModelRepository
public interface IModelManagementRepository<M extends IModel>
Defines the internal interface of a model management repository.
This is subject to change!
- Author:
- Holger Eichelberger
-
Method Summary
Modifier and TypeMethodDescriptionvoidclearLocation(File file, ProgressObserver observer) Clears the location related information from the repository.getResolvedModelInfo(M model) Returns the model information object for the given model by considering resolved models.loaders()Returns the loaders.voidupdateForLoader(IModelLoader<M> loader, ProgressObserver observer) Registers a model loader and updates the model information provided by the loader.voidupdateModelInformation(File file, ProgressObserver observer) Updates the model information infile.
-
Method Details
-
updateModelInformation
Updates the model information infile.- Parameters:
file- the location folder to searchobserver- an optional progress observer (useProgressObserver.NO_OBSERVERbut not null in case that no observation is intended)- Throws:
ModelManagementException- in case that the available information may be come inconsistent due to this update
-
loaders
ModelLoaders<M> loaders()Returns the loaders.- Returns:
- the loaders
-
updateForLoader
void updateForLoader(IModelLoader<M> loader, ProgressObserver observer) throws ModelManagementException Registers a model loader and updates the model information provided by the loader.- Parameters:
loader- the model loader (must not be null)observer- an optional progress observer (useProgressObserver.NO_OBSERVERbut not null in case that no observation is intended)- Throws:
ModelManagementException- in case that theloaderaims at loading inconsistent information
-
clearLocation
Clears the location related information from the repository.- Parameters:
file- the locationobserver- an optional progress observer (useProgressObserver.NO_OBSERVERbut not null in case that no observation is intended)
-
getResolvedModelInfo
Returns the model information object for the given model by considering resolved models.- Parameters:
model- the model to search an information object for which resolvesmodel- Returns:
- the related model information object or null if there is none
-