public interface IModelComponentService
deployModelComponent(File, IProgressMonitor)
: deploy a model component
from a file.removeModelComponent(IModelComponentDescriptor)
: remove a model component
from the model.getModelComponents()
: get the list of all model components deployed in
the model.packageModelComponent(Artifact, Set, File, IProgressMonitor)
: package a new
model component file from a model.Modifier and Type | Method and Description |
---|---|
void |
deployModelComponent(java.io.File archive,
IProgressMonitor monitor)
Deploy a model component in the model from the given file.
|
java.util.List<IModelComponentContributor> |
getContributors(Artifact mc,
java.util.Set<IPeerModule> peerModules)
Get model component contributions for given model component corresponding to the peer modules.
|
java.util.List<IModelComponentDescriptor> |
getModelComponents()
Get the list of all model components already deployed in the model.
|
void |
packageModelComponent(Artifact mc,
java.util.Set<IPeerModule> peerModules,
java.io.File targetFile,
IProgressMonitor monitor)
Package a model component from the model into a file.
|
void |
removeModelComponent(IModelComponentDescriptor modelComponent)
Delete a deployed model component from the model.
|
void removeModelComponent(IModelComponentDescriptor modelComponent)
modelComponent
- The model component to remove.java.util.List<IModelComponentDescriptor> getModelComponents()
IModelComponentDescriptor
. Must not be null
.void deployModelComponent(java.io.File archive, IProgressMonitor monitor)
archive
- the file containing the model component to deploy (usually ending with ".ramc").monitor
- a monitor for deployment infos. Might be null
.void packageModelComponent(Artifact mc, java.util.Set<IPeerModule> peerModules, java.io.File targetFile, IProgressMonitor monitor)
mc
- the model component to package.peerModules
- a list of public interfaces from modules, indicating which module should add content into this model component.targetFile
- the file to contain the model component (usually ending with ".ramc").monitor
- a monitor for deployment infos. Might be null
.java.util.List<IModelComponentContributor> getContributors(Artifact mc, java.util.Set<IPeerModule> peerModules)
mc
- the model component to package.peerModules
- a list of public interfaces from modules, indicating which module should add content into this model component.IModelComponentContributor
.