Interface IModelLoader<M extends IModel>
-
- Type Parameters:
M- the specific type of the model
- All Known Implementing Classes:
BuildLangModelUtility,IVMLModelLoader,ModelUtility,ModelUtility,TemplateLangModelUtility,VILModelLoader,VTLModelLoader
public interface IModelLoader<M extends IModel>Defines the interface for a mechanism being able to load models.- Author:
- Holger Eichelberger
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IModelLoader.LoadResult<M>load(ModelInfo<M> info, ImportResolver<M> resolver)Loads the related model.voidscan(java.io.File location, IModelLoader.IModelInfoHolder<M> holder)Scans a file for model information.
-
-
-
Method Detail
-
load
IModelLoader.LoadResult<M> load(ModelInfo<M> info, ImportResolver<M> resolver)
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
void scan(java.io.File location, IModelLoader.IModelInfoHolder<M> holder)Scans a file for model information.- Parameters:
location- the file to be scannedholder- an instance providing limited access to the model information storage
-
-