Class 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 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UriUtil

        public UriUtil()
    • 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 to 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)
      • toFolderURI

        public static org.eclipse.emf.common.util.URI toFolderURI​(org.eclipse.emf.common.util.URI uri)