Class ResolverUtils
- java.lang.Object
-
- org.eclipse.m2m.internal.qvt.oml.compiler.ResolverUtils
-
public class ResolverUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UnitContents.CSTContentscreateCSTContents(String input)static String[]getNameSegments(String qualifiedName)static StringgetNamespace(org.eclipse.core.runtime.IPath srcRelativePath)static StringgetNamespace(org.eclipse.core.runtime.IPath namespacePath, org.eclipse.core.runtime.IPath srcContainerPath)static URIgetSourceFolderURI(URI uri)Read the name-space value from the query part of the URI if available.static StringtoNamespaceRelativeUnitFilePath(String qualifiedName)static StringtoQualifiedName(String path)static StringtoQualifiedName(String[] nameSegments, int startPos, int endPos)static StringtoQualifiedName(org.eclipse.core.runtime.IPath path)
-
-
-
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, expectingplatform:/plugin/<plugind-id>/<path>/<unit-file>.qvto?ns=org.barNote: 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(org.eclipse.core.runtime.IPath path)
-
toQualifiedName
public static String toQualifiedName(String[] nameSegments, int startPos, int endPos)
-
toNamespaceRelativeUnitFilePath
public static String toNamespaceRelativeUnitFilePath(String qualifiedName)
-
createCSTContents
public static UnitContents.CSTContents createCSTContents(String input)
-
-