Interface IModelManagementRepository<M extends IModel>
-
- Type Parameters:
M- the specific type of model
- All Known Implementing Classes:
BuildModel.VilModelRepository,ModelRepository,TemplateModel.VtlModelRepository,VarModel.IvmlModelRepository
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearLocation(java.io.File file, ProgressObserver observer)Clears the location related information from the repository.ModelInfo<M>getResolvedModelInfo(M model)Returns the model information object for the given model by considering resolved models.ModelLoaders<M>loaders()Returns the loaders.voidupdateForLoader(IModelLoader<M> loader, ProgressObserver observer)Registers a model loader and updates the model information provided by the loader.voidupdateModelInformation(java.io.File file, ProgressObserver observer)Updates the model information infile.
-
-
-
Method Detail
-
updateModelInformation
void updateModelInformation(java.io.File file, ProgressObserver observer) throws ModelManagementExceptionUpdates 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
void clearLocation(java.io.File file, ProgressObserver observer)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
ModelInfo<M> getResolvedModelInfo(M model)
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
-
-