Class VilEcoreModelQuery

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.emf.ecore.EObject getEcoreElement​(CommonXtextEditor<?,​de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit> editor, ILanguageElement declaration)
      Returns the EObject of the parse tree of the given editor's resource that matches the element described by the given ModelElementDescription.
      protected de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit getLanguageUnit​(org.eclipse.xtext.resource.XtextResource resource)
      Returns the LanguageUnit in the given resource (VTL-file).
      java.lang.String getName​(de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit project)
      Returns the name of the project.
      de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit getProject​(org.eclipse.xtext.nodemodel.ICompositeNode rootNode)
      Returns the "project" of the Ecore-model represented by the given root node.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VilEcoreModelQuery

        public VilEcoreModelQuery()
    • Method Detail

      • getName

        public java.lang.String getName​(de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit project)
        Description copied from interface: IEcoreModelQuery
        Returns the name of the project.
        Parameters:
        project - the project
        Returns:
        the name of project
      • getProject

        public de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit getProject​(org.eclipse.xtext.nodemodel.ICompositeNode rootNode)
        Description copied from interface: IEcoreModelQuery
        Returns the "project" of the Ecore-model represented by the given root node.
        Parameters:
        rootNode - the ICompositeNode which is the root of the Ecore-model from which the "project" should be retrieved
        Returns:
        the "project" in the given resource. May return null if the given root node is null, or there is no "project" in that file
      • getEcoreElement

        public org.eclipse.emf.ecore.EObject getEcoreElement​(CommonXtextEditor<?,​de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit> editor,
                                                             ILanguageElement declaration)
        Description copied from interface: IEcoreModelQuery
        Returns the EObject of the parse tree of the given editor's resource that matches the element described by the given ModelElementDescription. The search for this object will be performed in the Ecore-model of the given editor's resource only. This requires that it is ensured that the given editor displays a file which includes the desired element.
        Parameters:
        editor - the XtextEditor which displays the file in which the desired element should be found
        declaration - the ModelElementDescription that describes the model element that should be found in the parse tree of the given editor's resource
        Returns:
        the EObject that matches the element described by the given ModelElementDescription. May return null if the element could not be found
      • getLanguageUnit

        protected de.uni_hildesheim.sse.vilBuildLanguage.LanguageUnit getLanguageUnit​(org.eclipse.xtext.resource.XtextResource resource)
        Returns the LanguageUnit in the given resource (VTL-file).
        Parameters:
        resource - the XtextResource from which the LanguageUnit should be retrieved
        Returns:
        the LanguageUnit in the given resource. May return null if the given resource is null, cannot be parsed, or there is no LanguageUnit in that file