Class ModelInitializer
java.lang.Object
net.ssehub.easy.basics.modelManagement.ModelInitializer
Supports the transparent registration of models, locations, model loaders etc.
This mechanism is intended to simplify the initialization of the runtime library,
which potentially does not contain the language parsers. However, currently, this
mechanism is limited to one location for all models.
- Author:
- Holger Eichelberger
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDefines the interface of an initializer. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddLocation(File location, ProgressObserver observer) Registers a location via the present model loaders.static voidregister(ModelInitializer.IModelInitializer initializer) Registers a model initializer.static voidregisterLoader(ProgressObserver observer) Registers a default model loader.static voidremoveLocation(File location, ProgressObserver observer) Registers a location via the present model loaders.static voidunregister(ModelInitializer.IModelInitializer initializer) Unregisters a model initializer.static voidunregisterLoader(ProgressObserver observer) Registers a default model loader.
-
Field Details
-
INITIALIZERS
-
-
Constructor Details
-
ModelInitializer
public ModelInitializer()
-
-
Method Details
-
register
Registers a model initializer.- Parameters:
initializer- the initializer
-
unregister
Unregisters a model initializer.- Parameters:
initializer- the initializer
-
addLocation
public static void addLocation(File location, ProgressObserver observer) throws ModelManagementException Registers a location via the present model loaders.- Parameters:
location- the locationobserver- the progress observer- Throws:
ModelManagementException- in case of problems registering the location
-
removeLocation
public static void removeLocation(File location, ProgressObserver observer) throws ModelManagementException Registers a location via the present model loaders.- Parameters:
location- the locationobserver- the progress observer- Throws:
ModelManagementException- in case of problems registering the location
-
registerLoader
Registers a default model loader.- Parameters:
observer- the progress observer- Throws:
ModelManagementException- in case of problems registering the location
-
unregisterLoader
Registers a default model loader.- Parameters:
observer- the progress observer- Throws:
ModelManagementException- in case of problems registering the location
-