Package org.eclipse.xtext.util
Class UriUtil
- java.lang.Object
-
- org.eclipse.xtext.util.UriUtil
-
public class UriUtil extends java.lang.Object
- Noreference:
- This class is not intended to be referenced by clients.
-
-
Constructor Summary
Constructors Constructor Description UriUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.eclipse.emf.common.util.URI
createFolderURI(java.io.File file)
In contrast toURI.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 lengthstatic org.eclipse.emf.common.util.URI
toFolderURI(org.eclipse.emf.common.util.URI uri)
-
-
-
Method Detail
-
isPrefixOf
public 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
-
createFolderURI
public static org.eclipse.emf.common.util.URI createFolderURI(java.io.File file)
In contrast toURI.createFileURI(String)
, this appends a trailing path separator. This ensures the resulting URI can be used with methods likeisPrefixOf(URI, URI)
,URI.resolve(URI)
andURI.deresolve(URI)
-
toFolderURI
public static org.eclipse.emf.common.util.URI toFolderURI(org.eclipse.emf.common.util.URI uri)
-
-