# Uses of Class
org.eclipse.e4.ui.css.swt.helpers.URI

Packages that use URI
Package
Description
org.eclipse.e4.ui.css.swt.helpers

## Uses of URI in org.eclipse.e4.ui.css.swt.helpers

Methods in org.eclipse.e4.ui.css.swt.helpers that return URI
Modifier and Type
Method
Description
`URI`
URI.`appendFileExtension(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.`appendFragment(String fragment)`
Returns the URI formed from this URI and the given fragment.
`URI`
URI.`appendQuery(String query)`
Returns the URI formed from this URI and the given query.
`URI`
URI.`appendSegment(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.`appendSegments(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.
`static URI`
URI.`createDeviceURI(String uri)`
Deprecated.
Use `createURI`, which now has explicit device support enabled.
`static URI`
URI.`createFileURI(String pathName)`
Static factory method based on parsing a `File` path string.
`static URI`
URI.`createGenericURI(String scheme, String opaquePart, String fragment)`
Static factory method for a generic, non-hierarchical URI.
`static URI`
URI.`createHierarchicalURI(String[] segments, String query, String fragment)`
Static factory method for a relative hierarchical URI with relative path.
`static URI`
URI.`createHierarchicalURI(String scheme, String authority, String device, String[] segments, String query, String fragment)`
Static factory method for a hierarchical URI with absolute path.
`static URI`
URI.`createHierarchicalURI(String scheme, String authority, String device, String query, String fragment)`
Static factory method for a hierarchical URI with no path.
`static URI`
URI.`createPlatformPluginURI(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(String pathName)`
Deprecated.
Use `createPlatformResourceURI(String, boolean)` instead.
`static URI`
URI.`createPlatformResourceURI(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(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(String uri, boolean ignoreEscaped)`
Static factory method that encodes and parses the given URI string.
`static URI`
URI.`createURI(String uri, boolean ignoreEscaped, int fragmentLocationStyle)`
Static factory method that encodes and parses the given URI string.
`static URI`
URI.`createURIWithCache(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.`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.`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.`trimFileExtension()`
If this URI has a non-null `fileExtension`, returns the URI formed by removing it; this URI unchanged, otherwise.
`URI`
URI.`trimFragment()`
If this URI has a non-null `fragment`, returns the URI formed by removing it; this URI unchanged, otherwise.
`URI`
URI.`trimQuery()`
If this URI has a non-null `query`, returns the URI formed by removing it; this URI unchanged, otherwise.
`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.
Methods in org.eclipse.e4.ui.css.swt.helpers with parameters of type URI
Modifier and Type
Method
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.`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.`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.