Interface ModelSourceExplorer

  • All Known Implementing Classes:
    DefaultModelSourceExplorer

    public interface ModelSourceExplorer
    This service provides methods to reflect on Integrity test model elements and to get information about their representations in the original script files.
    Author:
    Rene Schneider - initial API and implementation
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String determineSourceFilePath​(org.eclipse.emf.ecore.EObject aModelElement)
      Determines the full path to the source file in which a certain element is defined.
      ModelSourceInformationElement determineSourceInformation​(org.eclipse.emf.ecore.EObject aModelElement)
      Determines all information about the source of a model element at once.
      int determineSourceLine​(org.eclipse.emf.ecore.EObject aModelElement)
      Finds the line in the original script file at which a certain element starts.
      java.lang.String determineSourceSnippet​(org.eclipse.emf.ecore.EObject aModelElement)
      Finds the textual snippet from which a model element was originally parsed.
    • Method Detail

      • determineSourceSnippet

        java.lang.String determineSourceSnippet​(org.eclipse.emf.ecore.EObject aModelElement)
        Finds the textual snippet from which a model element was originally parsed.
        Parameters:
        aModelElement - the element
        Returns:
        the snippet
      • determineSourceLine

        int determineSourceLine​(org.eclipse.emf.ecore.EObject aModelElement)
        Finds the line in the original script file at which a certain element starts.
        Parameters:
        aModelElement - the element
        Returns:
        the line number
      • determineSourceFilePath

        java.lang.String determineSourceFilePath​(org.eclipse.emf.ecore.EObject aModelElement)
        Determines the full path to the source file in which a certain element is defined.
        Parameters:
        aModelElement - the element
        Returns:
        the file path
      • determineSourceInformation

        ModelSourceInformationElement determineSourceInformation​(org.eclipse.emf.ecore.EObject aModelElement)
        Determines all information about the source of a model element at once.
        Parameters:
        aModelElement - the element
        Returns:
        the information container