Class URI.Opaque

java.lang.Object
org.eclipse.emf.common.util.URI
org.eclipse.emf.common.util.URI.Opaque
Enclosing class:
URI

protected static final class URI.Opaque extends URI
A subclass for representing an opaque URI.
  • Field Details

    • scheme

      protected final String scheme
      The scheme of the opaque URI.
    • opaquePart

      protected final String opaquePart
      The opaque part of the opaque URI.
    • toString

      protected WeakReference<String> toString
      A weakly cached reference to the string representation.
  • Constructor Details

    • Opaque

      protected Opaque(int hashCode, String scheme, String opaquePart)
      Creates an instance from the components. Assertions are used to validate the integrity of the result. I.e., both components must be interned and the hash code must be equal to the hash code of the toString().
  • Method Details

    • hasOpaquePart

      public boolean hasOpaquePart()
      Description copied from class: URI
      Returns true if this is a non-hierarchical URI with an opaque part component; false otherwise.
      Overrides:
      hasOpaquePart in class URI
    • scheme

      public String scheme()
      Description copied from class: URI
      If this is an absolute URI, returns the scheme component; null otherwise.
      Overrides:
      scheme in class URI
    • opaquePart

      public String opaquePart()
      Description copied from class: URI
      If this is a non-hierarchical URI, returns the opaque part component; null otherwise.
      Overrides:
      opaquePart in class URI
    • cacheString

      protected void cacheString(String string)
      Overrides:
      cacheString in class URI
    • flushCachedString

      protected void flushCachedString()
      Overrides:
      flushCachedString in class URI
    • getCachedString

      protected String getCachedString()
      Overrides:
      getCachedString in class URI
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • matches

      protected boolean matches(String string)
      Overrides:
      matches in class URI
    • matches

      protected boolean matches(int validate, boolean hierarchical, String scheme, String authority, String device, boolean absolutePath, String[] segments, String query)
      Overrides:
      matches in class URI