M - the model typepublic abstract class AbstractModelInitializer<M extends IModel> extends java.lang.Object implements ModelInitializer.IModelInitializer
| Constructor and Description |
|---|
AbstractModelInitializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLocation(java.io.File location,
ProgressObserver observer)
Adds a model location to the end of the list of existing locations.
|
void |
addLocationToFront(java.io.File location,
ProgressObserver observer)
Adds a model location to the beginning of the list of existing locations.
|
protected abstract IModelLoader<M> |
getModelLoader()
Returns the actual model loader.
|
protected abstract ModelManagement<M> |
getModelManagement()
Returns the actual model management instance.
|
void |
registerLoader(ProgressObserver observer)
Registers the default model loader instance.
|
void |
removeLocation(java.io.File location,
ProgressObserver observer)
Adds a model location.
|
static java.io.File |
stripFile(java.io.File file)
Strips the file and turns it to the containing folder.
|
void |
unregisterLoader(ProgressObserver observer)
Unregisters the default model loader.
|
protected abstract ModelManagement<M> getModelManagement()
protected abstract IModelLoader<M> getModelLoader()
public static java.io.File stripFile(java.io.File file)
file - the file to be strippedfile elsepublic void addLocation(java.io.File location,
ProgressObserver observer)
throws ModelManagementException
ModelInitializer.IModelInitializeraddLocation in interface ModelInitializer.IModelInitializerlocation - the model location. Basically, this is a folder but for serializers,
this may be a file.observer - the progress observerModelManagementException - in case of problems registering the locationpublic void addLocationToFront(java.io.File location,
ProgressObserver observer)
throws ModelManagementException
ModelInitializer.IModelInitializeraddLocationToFront in interface ModelInitializer.IModelInitializerlocation - the model location. Basically, this is a folder but for serializers,
this may be a file.observer - the progress observerModelManagementException - in case of problems registering the locationpublic void removeLocation(java.io.File location,
ProgressObserver observer)
throws ModelManagementException
ModelInitializer.IModelInitializerremoveLocation in interface ModelInitializer.IModelInitializerlocation - the model location. Basically, this is a folder but for serializers,
this may be a file.observer - the progress observerModelManagementException - in case of problems registering the locationpublic void registerLoader(ProgressObserver observer) throws ModelManagementException
ModelInitializer.IModelInitializerregisterLoader in interface ModelInitializer.IModelInitializerobserver - the progress observerModelManagementException - in case of problems registering the locationpublic void unregisterLoader(ProgressObserver observer) throws ModelManagementException
ModelInitializer.IModelInitializerunregisterLoader in interface ModelInitializer.IModelInitializerobserver - the progress observerModelManagementException - in case of problems registering the locationCopyright © 2009 - 2018 SSE. All Rights Reserved.