Interface IQualifiedNameFilePathConverter

  • All Known Implementing Classes:
    QualifiedNameFilePathConverter

    public interface IQualifiedNameFilePathConverter
    Contract for QualifiedName to FilePath and backward converter.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      List<org.eclipse.core.runtime.IPath> getAllPossibleFilePaths​(org.eclipse.xtext.naming.QualifiedName fqn)
      Gets all possible file paths by the given FQN.
      String getFilePath​(String qualifiedPath)
      Gets file path corresponding to the given top object's FQN.
      String getFilePath​(org.eclipse.xtext.naming.QualifiedName qName)
      Gets file path corresponding to the given top object's FQN.
      org.eclipse.core.runtime.IPath getFilePath​(org.eclipse.xtext.naming.QualifiedName fqn, org.eclipse.emf.ecore.EClass eClass)
      Gets file path by the given top object FQN and EClass.
      org.eclipse.xtext.naming.QualifiedName getFqn​(String fileName)
      Gets top object's FQN corresponding to the given file name.
      org.eclipse.xtext.naming.QualifiedName getFqn​(org.eclipse.core.resources.IFile file)
      Gets top object's FQN corresponding to the given file.
      org.eclipse.xtext.naming.QualifiedName getFqn​(org.eclipse.core.runtime.IPath path)
      Gets top object's FQN corresponding to the given path.
    • Method Detail

      • getFqn

        org.eclipse.xtext.naming.QualifiedName getFqn​(String fileName)
        Gets top object's FQN corresponding to the given file name.
        Parameters:
        fileName - the file name, not null.
        Returns:
        the FQN if can be resolved, null otherwise.
      • getFqn

        org.eclipse.xtext.naming.QualifiedName getFqn​(org.eclipse.core.resources.IFile file)
        Gets top object's FQN corresponding to the given file.
        Parameters:
        file - the file, not null.
        Returns:
        the FQN if can be resolved, null otherwise.
      • getFqn

        org.eclipse.xtext.naming.QualifiedName getFqn​(org.eclipse.core.runtime.IPath path)
        Gets top object's FQN corresponding to the given path.
        Parameters:
        path - the path, not null.
        Returns:
        the FQN if can be resolved, null otherwise.
      • getAllPossibleFilePaths

        List<org.eclipse.core.runtime.IPath> getAllPossibleFilePaths​(org.eclipse.xtext.naming.QualifiedName fqn)
        Gets all possible file paths by the given FQN.
        Parameters:
        fqn - the FQN, not null.
        Returns:
        all possible file paths, not null
      • getFilePath

        org.eclipse.core.runtime.IPath getFilePath​(org.eclipse.xtext.naming.QualifiedName fqn,
                                                   org.eclipse.emf.ecore.EClass eClass)
        Gets file path by the given top object FQN and EClass.
        Parameters:
        fqn - the FQN, not null.
        eClass - the EClass, not null.
        Returns:
        the file path or null.
      • getFilePath

        String getFilePath​(org.eclipse.xtext.naming.QualifiedName qName)
        Gets file path corresponding to the given top object's FQN.
        Parameters:
        qName - - QualifiedName, not null.
        Returns:
        the path if can be resolved, null otherwise.
      • getFilePath

        String getFilePath​(String qualifiedPath)
        Gets file path corresponding to the given top object's FQN.
        Parameters:
        qualifiedPath - - qualified path to resource, not null.
        Returns:
        the path if can be resolved, null otherwise.