Class UriExtensions


  • public class UriExtensions
    extends org.eclipse.xtext.util.UriExtensions
    Normalizes file uris without authorities (file:/path...) to contain an empty authority (i.e. starts with three slashes:file:///path...).
    Since:
    2.11
    • Constructor Summary

      Constructors 
      Constructor Description
      UriExtensions()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toUriString​(java.net.URI uri)
      converts a java.net.URI into a string representation with empty authority, if absent and has file scheme.
      java.lang.String toUriString​(org.eclipse.emf.common.util.URI uri)
      returns the encoded string representation of the given URI (with empty authority, if absent and has file scheme).
      • Methods inherited from class org.eclipse.xtext.util.UriExtensions

        cleanupEncodedCharacters, shouldValidateEncodingSequences, toDecodedString, toEmfUri, toUri, withEmptyAuthority
      • Methods inherited from class java.lang.Object

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

      • UriExtensions

        public UriExtensions()
    • Method Detail

      • toUriString

        public java.lang.String toUriString​(org.eclipse.emf.common.util.URI uri)
        returns the encoded string representation of the given URI (with empty authority, if absent and has file scheme).
      • toUriString

        public java.lang.String toUriString​(java.net.URI uri)
        converts a java.net.URI into a string representation with empty authority, if absent and has file scheme.