Interface IModelLoader<M extends IModel>
- Type Parameters:
M- the specific type of the model
public interface IModelLoader<M extends IModel>
Defines the interface for a mechanism being able to load models.
- Author:
- Holger Eichelberger
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceIModelLoader.IModelInfoHolder<M extends IModel>An instance providing limited access to model information.static classIModelLoader.LoadResult<M extends IModel>Represents the result of loading a model. -
Method Summary
Modifier and TypeMethodDescriptionload(ModelInfo<M> info, ImportResolver<M> resolver) Loads the related model.voidscan(File location, IModelLoader.IModelInfoHolder<M> holder) Scans a file for model information.
-
Method Details
-
load
Loads the related model.- Parameters:
info- the model to be loaded (as information object)resolver- the import resolver to use (or null for a new default import resolver)- Returns:
- the loaded model (or null in case of problems)
-
scan
Scans a file for model information.- Parameters:
location- the file to be scannedholder- an instance providing limited access to the model information storage
-