| Package | Description |
|---|---|
| org.eclipse.emf.common |
Provides a collection of subpackages to support the EMF
infrastructure.
|
| org.eclipse.emf.common.util |
Provides basic utilities.
|
| Modifier and Type | Method and Description |
|---|---|
static URI |
CommonPlugin.asLocalURI(URI uri)
Use the platform, if available, to convert to a local URI.
|
protected static URI |
CommonPlugin.Implementation.asLocalURI(URI uri)
Use the platform to convert to a local URI.
|
protected static URI |
CommonPlugin.Implementation.fix(java.net.URL url,
java.lang.String fragment) |
static URI |
CommonPlugin.resolve(URI uri)
Use the platform, if available, to resolve the URI.
|
protected static URI |
CommonPlugin.Implementation.resolve(URI uri)
Use the platform to convert to a local URI.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<java.lang.String,URI> |
CommonPlugin.getTargetPlatformBundleMappings()
Computes a map from bundle symbolic name to the bundle's location URI.
|
| Modifier and Type | Method and Description |
|---|---|
static URI |
CommonPlugin.asLocalURI(URI uri)
Use the platform, if available, to convert to a local URI.
|
protected static URI |
CommonPlugin.Implementation.asLocalURI(URI uri)
Use the platform to convert to a local URI.
|
static URI |
CommonPlugin.resolve(URI uri)
Use the platform, if available, to resolve the URI.
|
protected static URI |
CommonPlugin.Implementation.resolve(URI uri)
Use the platform to convert to a local URI.
|
| Modifier and Type | Class and Description |
|---|---|
protected static class |
URI.Fragment
A subclass for representing a URI with a fragment.
|
protected static class |
URI.Hierarchical
A subclass for representing a hierarchical URI.
|
protected static class |
URI.Opaque
A subclass for representing an opaque URI.
|
| Modifier and Type | Field and Description |
|---|---|
protected URI |
URI.URIPool.CachedToString.uri |
protected URI |
URI.Fragment.uri
The
base URI. |
| Modifier and Type | Method and Description |
|---|---|
URI |
URI.appendFileExtension(java.lang.String fileExtension)
Returns the URI formed by appending a period (".") followed by the
specified file extension to the last path segment of this URI, if it is
hierarchical with a non-empty path ending in a non-empty segment;
otherwise, this URI is returned unchanged.
|
URI |
URI.Hierarchical.appendFileExtension(java.lang.String fileExtension) |
URI |
URI.Fragment.appendFileExtension(java.lang.String fileExtension) |
URI |
URI.appendFragment(java.lang.String fragment)
Returns the URI formed from this URI and the given fragment.
|
URI |
URI.Fragment.appendFragment(java.lang.String fragment) |
URI |
URI.appendQuery(java.lang.String query)
Returns the URI formed from this URI and the given query.
|
URI |
URI.Hierarchical.appendQuery(java.lang.String query) |
URI |
URI.Fragment.appendQuery(java.lang.String query) |
URI |
URI.appendSegment(java.lang.String segment)
Returns the URI formed by appending the specified segment on to the end
of the path of this URI, if hierarchical; this URI unchanged,
otherwise.
|
URI |
URI.Hierarchical.appendSegment(java.lang.String segment) |
URI |
URI.Fragment.appendSegment(java.lang.String segment) |
URI |
URI.appendSegments(java.lang.String[] segments)
Returns the URI formed by appending the specified segments on to the
end of the path of this URI, if hierarchical; this URI unchanged,
otherwise.
|
URI |
URI.Hierarchical.appendSegments(java.lang.String[] segments) |
URI |
URI.Fragment.appendSegments(java.lang.String[] segments) |
static URI |
URI.createDeviceURI(java.lang.String uri)
Deprecated.
Use
createURI, which now has explicit
device support enabled. The two methods now operate identically. |
static URI |
URI.createFileURI(java.lang.String pathName)
Static factory method based on parsing a
File path string. |
static URI |
URI.createGenericURI(java.lang.String scheme,
java.lang.String opaquePart,
java.lang.String fragment)
Static factory method for a generic, non-hierarchical URI.
|
static URI |
URI.createHierarchicalURI(java.lang.String[] segments,
java.lang.String query,
java.lang.String fragment)
Static factory method for a relative hierarchical URI with relative
path.
|
static URI |
URI.createHierarchicalURI(java.lang.String scheme,
java.lang.String authority,
java.lang.String device,
java.lang.String[] segments,
java.lang.String query,
java.lang.String fragment)
Static factory method for a hierarchical URI with absolute path.
|
static URI |
URI.createHierarchicalURI(java.lang.String scheme,
java.lang.String authority,
java.lang.String device,
java.lang.String query,
java.lang.String fragment)
Static factory method for a hierarchical URI with no path.
|
static URI |
URI.createPlatformPluginURI(java.lang.String pathName,
boolean encode)
Static factory method based on parsing a plug-in-based path string,
with an option to encode the created URI.
|
static URI |
URI.createPlatformResourceURI(java.lang.String pathName)
Deprecated.
Use
createPlatformResourceURI(String, boolean) instead. |
static URI |
URI.createPlatformResourceURI(java.lang.String pathName,
boolean encode)
Static factory method based on parsing a workspace-relative path string,
with an option to encode the created URI.
|
static URI |
URI.createURI(java.lang.String uri)
Static factory method based on parsing a URI string, with
explicit device support and handling
for archive URIs enabled.
|
static URI |
URI.createURI(java.lang.String uri,
boolean ignoreEscaped)
Static factory method that encodes and parses the given URI string.
|
static URI |
URI.createURI(java.lang.String uri,
boolean ignoreEscaped,
int fragmentLocationStyle)
Static factory method that encodes and parses the given URI string.
|
static URI |
URI.createURIWithCache(java.lang.String uri)
Deprecated.
Please use
createURI instead. |
URI |
URI.deresolve(URI base)
Finds the shortest relative or, if necessary, the absolute URI that,
when resolved against the given
base absolute hierarchical
URI using resolve, will yield this absolute URI. |
URI |
URI.deresolve(URI base,
boolean preserveRootParents,
boolean anyRelPath,
boolean shorterRelPath)
Finds an absolute URI that, when resolved against the given
base absolute hierarchical URI using resolve, will yield this absolute URI. |
URI |
URI.Hierarchical.deresolve(URI base,
boolean preserveRootParents,
boolean anyRelPath,
boolean shorterRelPath) |
URI |
URI.Fragment.deresolve(URI base,
boolean preserveRootParents,
boolean anyRelPath,
boolean shorterRelPath) |
URI |
URI.URIPool.StringAccessUnit.getInternalizedValue() |
URI |
URI.URIPool.PlatformAccessUnit.getInternalizedValue() |
URI |
URI.URIPool.FileAccessUnit.getInternalizedValue() |
URI |
URI.URIPool.URIComponentsAccessUnit.getInternalizedValue() |
protected URI |
URI.URIPool.URIPoolAccessUnitBase.getValue() |
protected URI |
URI.URIPool.intern(boolean isExclusive,
boolean hierarchical,
java.lang.String scheme,
java.lang.String authority,
java.lang.String device,
boolean absolutePath,
java.lang.String[] segments,
java.lang.String query,
int hashCode)
Intern a URI from its component parts.
|
protected URI |
URI.URIPool.intern(boolean isExclusive,
int validate,
boolean hierarchical,
java.lang.String scheme,
java.lang.String authority,
java.lang.String device,
boolean absolutePath,
java.lang.String[] segments,
java.lang.String query)
Intern a URI from its component parts.
|
protected URI |
URI.URIPool.intern(java.lang.String string)
Intern a URI from its string representation, parsing if necessary.
|
protected URI |
URI.URIPool.intern(java.lang.String base,
java.lang.String pathName,
boolean encode)
Intern a platform URI from its path representation, parsing if necessary.
|
protected URI |
URI.URIPool.internFile(java.lang.String pathName)
Intern a file URI from its path representation, parsing if necessary.
|
URI |
URI.URIPool.StringAccessUnit.match() |
protected URI |
URI.URIPool.StringAccessUnit.parseIntoURI(java.lang.String uri)
A string-parsing implementation.
|
protected URI |
URI.rawAppendFragment(java.lang.CharSequence fragment) |
URI |
URI.replacePrefix(URI oldPrefix,
URI newPrefix)
If this is a hierarchical URI reference and
oldPrefix is a
prefix of it, this returns the URI formed by replacing it by
newPrefix; null otherwise. |
URI |
URI.Hierarchical.replacePrefix(URI oldPrefix,
URI newPrefix) |
URI |
URI.Fragment.replacePrefix(URI oldPrefix,
URI newPrefix) |
URI |
URI.resolve(URI base)
Resolves this URI reference against a
base absolute
hierarchical URI, returning the resulting absolute URI. |
URI |
URI.resolve(URI base,
boolean preserveRootParents)
Resolves this URI reference against a
base absolute
hierarchical URI, returning the resulting absolute URI. |
URI |
URI.Hierarchical.resolve(URI base,
boolean preserveRootParents) |
URI |
URI.Fragment.resolve(URI base,
boolean preserveRootParents) |
URI |
URI.trimFileExtension()
If this URI has a non-null
fileExtension,
returns the URI formed by removing it; this URI unchanged, otherwise. |
URI |
URI.Hierarchical.trimFileExtension() |
URI |
URI.Fragment.trimFileExtension() |
URI |
URI.trimFragment()
If this URI has a non-null
fragment, returns the URI
formed by removing it; this URI unchanged, otherwise. |
URI |
URI.Fragment.trimFragment() |
URI |
URI.trimQuery()
If this URI has a non-null
query, returns the URI
formed by removing it; this URI unchanged, otherwise. |
URI |
URI.Hierarchical.trimQuery() |
URI |
URI.Fragment.trimQuery() |
URI |
URI.trimSegments(int i)
Returns the URI formed by trimming the specified number of segments
(including empty segments, such as one representing a trailing
separator) from the end of the path of this URI, if hierarchical;
otherwise, this URI is returned unchanged.
|
URI |
URI.Hierarchical.trimSegments(int i) |
URI |
URI.Fragment.trimSegments(int i) |
| Modifier and Type | Method and Description |
|---|---|
protected Pool.AccessUnit<URI> |
URI.URIPool.StringAccessUnit.Queue.newAccessUnit() |
protected Pool.AccessUnit<URI> |
URI.URIPool.PlatformAccessUnit.Queue.newAccessUnit() |
protected Pool.AccessUnit<URI> |
URI.URIPool.FileAccessUnit.Queue.newAccessUnit() |
protected Pool.AccessUnit<URI> |
URI.URIPool.URIComponentsAccessUnit.Queue.newAccessUnit() |
| Modifier and Type | Method and Description |
|---|---|
URI |
URI.deresolve(URI base)
Finds the shortest relative or, if necessary, the absolute URI that,
when resolved against the given
base absolute hierarchical
URI using resolve, will yield this absolute URI. |
URI |
URI.deresolve(URI base,
boolean preserveRootParents,
boolean anyRelPath,
boolean shorterRelPath)
Finds an absolute URI that, when resolved against the given
base absolute hierarchical URI using resolve, will yield this absolute URI. |
URI |
URI.Hierarchical.deresolve(URI base,
boolean preserveRootParents,
boolean anyRelPath,
boolean shorterRelPath) |
URI |
URI.Fragment.deresolve(URI base,
boolean preserveRootParents,
boolean anyRelPath,
boolean shorterRelPath) |
protected java.lang.String[] |
URI.Hierarchical.findRelativePath(URI base,
boolean preserveRootParents) |
protected boolean |
URI.URIPool.StringAccessUnit.matches(URI value) |
protected boolean |
URI.URIPool.PlatformAccessUnit.matches(URI value) |
protected boolean |
URI.URIPool.FileAccessUnit.matches(URI value) |
protected boolean |
URI.URIPool.URIComponentsAccessUnit.matches(URI value) |
protected java.lang.String[] |
URI.Hierarchical.mergePath(URI base,
boolean preserveRootParents) |
protected java.lang.ref.WeakReference<java.lang.String> |
URI.URIPool.newCachedToString(URI uri,
java.lang.String string) |
URI |
URI.replacePrefix(URI oldPrefix,
URI newPrefix)
If this is a hierarchical URI reference and
oldPrefix is a
prefix of it, this returns the URI formed by replacing it by
newPrefix; null otherwise. |
URI |
URI.Hierarchical.replacePrefix(URI oldPrefix,
URI newPrefix) |
URI |
URI.Fragment.replacePrefix(URI oldPrefix,
URI newPrefix) |
URI |
URI.resolve(URI base)
Resolves this URI reference against a
base absolute
hierarchical URI, returning the resulting absolute URI. |
URI |
URI.resolve(URI base,
boolean preserveRootParents)
Resolves this URI reference against a
base absolute
hierarchical URI, returning the resulting absolute URI. |
URI |
URI.Hierarchical.resolve(URI base,
boolean preserveRootParents) |
URI |
URI.Fragment.resolve(URI base,
boolean preserveRootParents) |
protected boolean |
URI.segmentsEqual(URI uri) |
protected boolean |
URI.Hierarchical.segmentsEqual(URI uri) |
protected boolean |
URI.Fragment.segmentsEqual(URI uri) |
protected void |
URI.URIPool.URIPoolAccessUnitBase.setValue(URI value) |
| Constructor and Description |
|---|
CachedToString(URI uri,
java.lang.String string,
java.lang.ref.ReferenceQueue<? super java.lang.String> queue) |
Fragment(int hashCode,
URI uri,
java.lang.CharSequence fragment)
Creates an instance from the components.
|
| Constructor and Description |
|---|
URIPoolAccessUnitBase(Pool.AccessUnit.Queue<URI> queue) |
Copyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature