public class UriUtil
extends java.lang.Object
| Constructor and Description |
|---|
UriUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.emf.common.util.URI |
createFolderURI(java.io.File file)
In contrast to
URI.createFileURI(String), this appends a trailing path separator. |
static boolean |
isPrefixOf(org.eclipse.emf.common.util.URI prefix,
org.eclipse.emf.common.util.URI uri)
A URI is a prefix of another URI if:
Both have the same scheme The prefix ends with a trailing separator The segments of both URIs match up to the prefix's length |
static org.eclipse.emf.common.util.URI |
toFolderURI(org.eclipse.emf.common.util.URI uri) |
public static boolean isPrefixOf(org.eclipse.emf.common.util.URI prefix,
org.eclipse.emf.common.util.URI uri)
public static org.eclipse.emf.common.util.URI createFolderURI(java.io.File file)
URI.createFileURI(String), this appends a trailing path separator. This ensures
the resulting URI can be used with methods like isPrefixOf(URI, URI), URI.resolve(URI) and
URI.deresolve(URI)public static org.eclipse.emf.common.util.URI toFolderURI(org.eclipse.emf.common.util.URI uri)