Package com._1c.g5.v8.dt.ide
Class QualifiedNameFilePathConverter
java.lang.Object
com._1c.g5.v8.dt.ide.QualifiedNameFilePathConverter
- All Implemented Interfaces:
IQualifiedNameFilePathConverter
public class QualifiedNameFilePathConverter
extends Object
implements IQualifiedNameFilePathConverter
Util class to convert Path to QualifiedName and QualifiedName to Path
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.eclipse.core.runtime.IPath>
getAllPossibleFilePaths
(org.eclipse.xtext.naming.QualifiedName fqn) Gets all possible file paths by the given FQN.getFilePath
(String qualifiedPath) Gets file path corresponding to the given top object's FQN.org.eclipse.core.runtime.IPath
getFilePath
(String fqn, org.eclipse.emf.ecore.EClass eClass) Gets file path by the given top object FQN andEClass
.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 andEClass
.org.eclipse.xtext.naming.QualifiedName
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.
-
Constructor Details
-
QualifiedNameFilePathConverter
public QualifiedNameFilePathConverter()
-
-
Method Details
-
getFqn
Description copied from interface:IQualifiedNameFilePathConverter
Gets top object's FQN corresponding to the given file name.- Specified by:
getFqn
in interfaceIQualifiedNameFilePathConverter
- Parameters:
fileName
- the file name, notnull
.- Returns:
- the FQN if can be resolved,
null
otherwise.
-
getFqn
public org.eclipse.xtext.naming.QualifiedName getFqn(org.eclipse.core.resources.IFile file) Description copied from interface:IQualifiedNameFilePathConverter
Gets top object's FQN corresponding to the given file.- Specified by:
getFqn
in interfaceIQualifiedNameFilePathConverter
- Parameters:
file
- the file, notnull
.- Returns:
- the FQN if can be resolved,
null
otherwise.
-
getFqn
public org.eclipse.xtext.naming.QualifiedName getFqn(org.eclipse.core.runtime.IPath path) Description copied from interface:IQualifiedNameFilePathConverter
Gets top object's FQN corresponding to the given path.- Specified by:
getFqn
in interfaceIQualifiedNameFilePathConverter
- Parameters:
path
- the path, notnull
.- Returns:
- the FQN if can be resolved,
null
otherwise.
-
getAllPossibleFilePaths
public List<org.eclipse.core.runtime.IPath> getAllPossibleFilePaths(org.eclipse.xtext.naming.QualifiedName fqn) Description copied from interface:IQualifiedNameFilePathConverter
Gets all possible file paths by the given FQN.- Specified by:
getAllPossibleFilePaths
in interfaceIQualifiedNameFilePathConverter
- Parameters:
fqn
- the FQN, notnull
.- Returns:
- all possible file paths, not
null
-
getFilePath
public org.eclipse.core.runtime.IPath getFilePath(org.eclipse.xtext.naming.QualifiedName fqn, org.eclipse.emf.ecore.EClass eClass) Description copied from interface:IQualifiedNameFilePathConverter
Gets file path by the given top object FQN andEClass
.- Specified by:
getFilePath
in interfaceIQualifiedNameFilePathConverter
- Parameters:
fqn
- the FQN, notnull
.eClass
- theEClass
, notnull
.- Returns:
- the file path or
null
.
-
getFilePath
Description copied from interface:IQualifiedNameFilePathConverter
Gets file path by the given top object FQN andEClass
.- Specified by:
getFilePath
in interfaceIQualifiedNameFilePathConverter
- Parameters:
fqn
- the FQN, notnull
.eClass
- theEClass
, notnull
.- Returns:
- the file path or
null
.
-
getFilePath
Description copied from interface:IQualifiedNameFilePathConverter
Gets file path corresponding to the given top object's FQN.- Specified by:
getFilePath
in interfaceIQualifiedNameFilePathConverter
- Parameters:
qName
- - QualifiedName, notnull
.- Returns:
- the path if can be resolved,
null
otherwise.
-
getFilePath
Description copied from interface:IQualifiedNameFilePathConverter
Gets file path corresponding to the given top object's FQN.- Specified by:
getFilePath
in interfaceIQualifiedNameFilePathConverter
- Parameters:
qualifiedPath
- - qualified path to resource, notnull
.- Returns:
- the path if can be resolved,
null
otherwise.
-