Package org.eclipse.emf.common.util
Class URI.Opaque
java.lang.Object
org.eclipse.emf.common.util.URI
org.eclipse.emf.common.util.URI.Opaque
- Enclosing class:
URI
A subclass for representing an opaque URI.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.emf.common.util.URI
URI.Fragment, URI.Hierarchical, URI.Opaque, URI.URIPool -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StringThe opaque part of the opaque URI.protected final StringThe scheme of the opaque URI.protected WeakReference<String> A weakly cached reference to the string representation.Fields inherited from class org.eclipse.emf.common.util.URI
ALPHA_HI, ALPHA_LO, ALPHANUM_HI, ALPHANUM_LO, ARCHIVE_IDENTIFIER, ARCHIVE_SCHEMES, ARCHIVE_SEPARATOR, AUTHORITY_SEPARATOR, AUTHORITY_SEPARATOR_HASH_CODE, DEBUG, DEVICE_IDENTIFIER, DIGIT_HI, DIGIT_LO, ENCODE_PLATFORM_RESOURCE_URIS, ESCAPE, FILE_EXTENSION_SEPARATOR, FRAGMENT_FIRST_SEPARATOR, FRAGMENT_LAST_SEPARATOR, FRAGMENT_NONE, FRAGMENT_SEPARATOR, hashCode, HEX_DIGITS, HEX_HI, HEX_LO, MAJOR_SEPARATOR_HI, MAJOR_SEPARATOR_LO, NO_SEGMENTS, ONE_EMPTY_SEGMENT, ONE_SELF_SEGMENT, PATH_CHAR_HI, PATH_CHAR_LO, PLATFORM_SEGMENT_RESERVED_HI, PLATFORM_SEGMENT_RESERVED_LO, POOL, PORT_SEPARATOR, QUERY_SEPARATOR, RESERVED_HI, RESERVED_LO, SCHEME_ARCHIVE, SCHEME_ARCHIVE_HASH_CODE, SCHEME_FILE, SCHEME_FILE_HASH_CODE, SCHEME_HTTP, SCHEME_HTTP_HASH_CODE, SCHEME_JAR, SCHEME_JAR_HASH_CODE, SCHEME_PLATFORM, SCHEME_PLATFORM_HASH_CODE, SCHEME_SEPARATOR, SCHEME_ZIP, SCHEME_ZIP_HASH_CODE, SEGMENT_CHAR_HI, SEGMENT_CHAR_LO, SEGMENT_EMPTY, SEGMENT_END_HI, SEGMENT_END_LO, SEGMENT_PARENT, SEGMENT_PLUGIN, SEGMENT_RESOURCE, SEGMENT_SELF, SEGMENT_SEPARATOR, UNRESERVED_HI, UNRESERVED_LO, URIC_HI, URIC_LO, USER_INFO_SEPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcacheString(String string) protected voidprotected StringbooleanReturnstrueif this is a non-hierarchical URI with an opaque part component;falseotherwise.protected booleanmatches(int validate, boolean hierarchical, String scheme, String authority, String device, boolean absolutePath, String[] segments, String query) protected booleanIf this is a non-hierarchical URI, returns the opaque part component;nullotherwise.scheme()If this is an absolute URI, returns the scheme component;nullotherwise.toString()Methods inherited from class org.eclipse.emf.common.util.URI
appendEscaped, appendFileExtension, appendFragment, appendQuery, appendSegment, appendSegments, authority, collapseSegments, contains, createDeviceURI, createFileURI, createGenericURI, createHierarchicalURI, createHierarchicalURI, createHierarchicalURI, createPlatformPluginURI, createPlatformResourceURI, createPlatformResourceURI, createURI, createURI, createURI, createURIWithCache, decode, deresolve, deresolve, device, devicePath, encode, encodeAuthority, encodeFragment, encodeOpaquePart, encodeQuery, encodeSegment, encodeURI, equals, fileExtension, firstInvalidSegment, fragment, hasAbsolutePath, hasAuthority, hasDevice, hasDeviceOrPath, hasEmptyPath, hasFragment, hashCode, hasPath, hasQuery, hasRelativePath, hasTrailingPathSeparator, highBitmask, highBitmask, highBitmask, host, isArchive, isArchiveScheme, isBase, isCurrentDocumentReference, isEmpty, isEscaped, isFile, isHierarchical, isPlatform, isPlatformPlugin, isPlatformResource, isPrefix, isRelative, lastSegment, lowBitmask, lowBitmask, lowBitmask, main, matches, matches, path, port, query, rawAppendFragment, rawSegments, replacePrefix, resolve, resolve, segment, segmentCount, segments, segmentsEqual, segmentsList, splitInternFragment, toFileString, toPlatformString, trimFileExtension, trimFragment, trimQuery, trimSegments, unescape, userInfo, validArchiveAuthority, validateURI, validAuthority, validDevice, validFragment, validJarAuthority, validOpaquePart, validQuery, validScheme, validSegment, validSegments, valueOf
-
Field Details
-
scheme
The scheme of the opaque URI. -
opaquePart
The opaque part of the opaque URI. -
toString
A weakly cached reference to the string representation.
-
-
Constructor Details
-
Opaque
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 thetoString().
-
-
Method Details
-
hasOpaquePart
public boolean hasOpaquePart()Description copied from class:URIReturnstrueif this is a non-hierarchical URI with an opaque part component;falseotherwise.- Overrides:
hasOpaquePartin classURI
-
scheme
Description copied from class:URIIf this is an absolute URI, returns the scheme component;nullotherwise. -
opaquePart
Description copied from class:URIIf this is a non-hierarchical URI, returns the opaque part component;nullotherwise.- Overrides:
opaquePartin classURI
-
cacheString
- Overrides:
cacheStringin classURI
-
flushCachedString
protected void flushCachedString()- Overrides:
flushCachedStringin classURI
-
getCachedString
- Overrides:
getCachedStringin classURI
-
toString
-
matches
-
matches
-