public class ResolverUtils extends Object
Modifier and Type | Method and Description |
---|---|
static UnitContents.CSTContents |
createCSTContents(String input) |
static String[] |
getNameSegments(String qualifiedName) |
static String |
getNamespace(IPath srcRelativePath) |
static String |
getNamespace(IPath namespacePath,
IPath srcContainerPath) |
static URI |
getSourceFolderURI(URI uri)
Read the name-space value from the query part of the URI if available.
|
static String |
toNamespaceRelativeUnitFilePath(String qualifiedName) |
static String |
toQualifiedName(IPath path) |
static String |
toQualifiedName(String path) |
static String |
toQualifiedName(String[] nameSegments,
int startPos,
int endPos) |
public static URI getSourceFolderURI(URI uri)
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 resolutionpublic static String toQualifiedName(String[] nameSegments, int startPos, int endPos)
public static String toNamespaceRelativeUnitFilePath(String qualifiedName)
public static UnitContents.CSTContents createCSTContents(String input)
Copyright © 2008, 2018 Borland Software Corporation and others. All Rights Reserved.