public interface ModelService
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ModelService.ModelElementFactory
Factory to create model elements
|
| Modifier and Type | Method and Description |
|---|---|
ModelService.ModelElementFactory |
createModelElementFactory(java.lang.Class<?> owner,
EModelService modelService)
Create a factory to create model elements
|
java.lang.String |
getBundleName(java.lang.Class<?> clazz)
Get the name of the bundle
|
java.util.function.Supplier<java.lang.String> |
getBundleNameSupplier(java.lang.Class<?> clazz)
Get a supplier for the bundle name
|
<M extends MApplicationElement> |
getElementInstance(MApplication m,
java.lang.String uniqueId)
Get the real element for the given id
|
MApplication |
getRoot(MApplicationElement e)
Get the root element of the model
|
java.lang.String |
getUniqueId(MApplicationElement element)
Get global unique identifier for the given model element
|
java.lang.String getUniqueId(MApplicationElement element)
element - the element<M extends MApplicationElement> M getElementInstance(MApplication m,
java.lang.String uniqueId)
M - the element typem - the application elementuniqueId - the unique idnull if not foundMApplication getRoot(MApplicationElement e)
e - the current elementModelService.ModelElementFactory createModelElementFactory(java.lang.Class<?> owner, EModelService modelService)
owner - the owner of the model elementmodelService - the model service used to create the elementsjava.lang.String getBundleName(java.lang.Class<?> clazz)
clazz - the clazzjava.util.function.Supplier<java.lang.String> getBundleNameSupplier(java.lang.Class<?> clazz)
clazz - the clazz