Class ResolverUtils


  • public class ResolverUtils
    extends Object
    • Method Detail

      • getSourceFolderURI

        public static URI getSourceFolderURI​(URI uri)
        Read the name-space value from the query part of the URI if available.
        Parameters:
        uri - to parse, expecting platform:/plugin/<plugind-id>/<path>/<unit-file>.qvto?ns=org.bar Note: A temporary solution for compilation of deployed qvto files, in which case the knowledge of the source folder is absent and affects the qualified name resolution
      • getNamespace

        public static String getNamespace​(org.eclipse.core.runtime.IPath namespacePath,
                                          org.eclipse.core.runtime.IPath srcContainerPath)
      • getNamespace

        public static String getNamespace​(org.eclipse.core.runtime.IPath srcRelativePath)
      • toQualifiedName

        public static String toQualifiedName​(String path)
      • toQualifiedName

        public static String toQualifiedName​(org.eclipse.core.runtime.IPath path)
      • toQualifiedName

        public static String toQualifiedName​(String[] nameSegments,
                                             int startPos,
                                             int endPos)
      • getNameSegments

        public static String[] getNameSegments​(String qualifiedName)
      • toNamespaceRelativeUnitFilePath

        public static String toNamespaceRelativeUnitFilePath​(String qualifiedName)