class Utils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BUNDLE_ID
The pseudo bundle identification for logging.
|
| Modifier | Constructor and Description |
|---|---|
private |
Utils()
Prevents external creation.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) static <M extends net.ssehub.easy.basics.modelManagement.IModel> |
loadPreferredModel(net.ssehub.easy.basics.modelManagement.ModelManagement<M> modelMgmt,
net.ssehub.easy.basics.modelManagement.IModelData modelDefinition,
java.io.File... locations)
Loads a model with the specified (model name, version) pair from the given
ModelManagement instance. |
public static final java.lang.String BUNDLE_ID
static <M extends net.ssehub.easy.basics.modelManagement.IModel> M loadPreferredModel(net.ssehub.easy.basics.modelManagement.ModelManagement<M> modelMgmt,
net.ssehub.easy.basics.modelManagement.IModelData modelDefinition,
java.io.File... locations)
throws net.ssehub.easy.basics.modelManagement.ModelManagementException
ModelManagement instance.
The model will only be loaded, if it can be loaded from the given locations
(ordering of parameters will be considered).M - The specific model type, will be derived from the ModelManagement instance.
Will be Project
or Script.modelMgmt - The ModelManagement instance from where the IModel should be loaded from, i.e.
VarModel.INSTANCE
or BuildModel.INSTANCE.modelDefinition - A (model name, version) pair for specifying which IModel should be loaded.locations - A ordered list of locations from where the IModel should be loaded from.IModel or null.net.ssehub.easy.basics.modelManagement.ModelManagementException - In case that the available information
may become inconsistent due to this updateCopyright © 2009 - 2018 SSE. All Rights Reserved.