public class IvmlModelQuery extends java.lang.Object implements IModelQuery<Project,ContainableModelElement,ModelElementTypeFinder.ModelElementDescription>
| Modifier and Type | Field and Description |
|---|---|
static IvmlModelQuery |
INSTANCE |
| Constructor and Description |
|---|
IvmlModelQuery() |
| Modifier and Type | Method and Description |
|---|---|
ModelElementTypeFinder.ModelElementDescription |
findDeclaration(Project project,
ContainableModelElement modelElement)
Finds a model element an returns a generic result.
|
private EASyLoggerFactory.EASyLogger |
getLogger()
Returns the logger.
|
ContainableModelElement |
getModelElement(java.lang.String selectedElement,
java.lang.String selectedElementsProjectName)
Returns the element of the model identified by the selected
element (the name) and the scope which is the name of the project the
selected element is located in.
|
ModelManagement<Project> |
getModelManagement()
Returns the model management instance.
|
Project |
getParentProject(ContainableModelElement modelElement)
Returns the parent
Project the
given ContainableModelElement is declared in. |
public static final IvmlModelQuery INSTANCE
public ModelManagement<Project> getModelManagement()
IModelQuerygetModelManagement in interface IModelQuery<Project,ContainableModelElement,ModelElementTypeFinder.ModelElementDescription>public ContainableModelElement getModelElement(java.lang.String selectedElement, java.lang.String selectedElementsProjectName)
IModelQuerygetModelElement in interface IModelQuery<Project,ContainableModelElement,ModelElementTypeFinder.ModelElementDescription>selectedElement - the name of the selected element as a String for which
the element in the model should be found.selectedElementsProjectName - the name of the project of the selected element as a
String which is used as the starting point for finding
the corresponding element in the modelnull if the element could not be
found.public Project getParentProject(ContainableModelElement modelElement)
Project the
given ContainableModelElement is declared in.getParentProject in interface IModelQuery<Project,ContainableModelElement,ModelElementTypeFinder.ModelElementDescription>modelElement - the ContainableModelElement for which the parent
project should be foundProject the
given ContainableModelElement is declared in. May return
null if the given model element is null
, if the model element has no top-level parent (which typically
is the Project), or the
top-level parent is not an instance of
Project.private EASyLoggerFactory.EASyLogger getLogger()
public ModelElementTypeFinder.ModelElementDescription findDeclaration(Project project, ContainableModelElement modelElement)
IModelQueryfindDeclaration in interface IModelQuery<Project,ContainableModelElement,ModelElementTypeFinder.ModelElementDescription>project - the project to search withinmodelElement - the model elementCopyright © 2009 - 2018 SSE. All Rights Reserved.