public class URIHandlerImpl extends java.lang.Object implements XMLResource.URIHandler
URIHandler interface.
Implementations should extend this class to implement a specialized URI handler.| Modifier and Type | Class and Description |
|---|---|
static class |
URIHandlerImpl.AbsoluteCrossBundleAware
A URI handler that will avoid creating relative references between different platform:/resource/project-name or platform/plugin/bundle-name,
i.e., it will produce relative references only within projects or bundles and will use absolute URIs for references outside of that project or bundle.
|
static class |
URIHandlerImpl.PlatformSchemeAware
A URI handler that will avoid creating relative references between platform:/resource and platform:/plugin.
|
| Modifier and Type | Field and Description |
|---|---|
protected URI |
baseURI |
protected boolean |
resolve |
| Constructor and Description |
|---|
URIHandlerImpl() |
| Modifier and Type | Method and Description |
|---|---|
URI |
deresolve(URI uri)
Returns the URI
deresolved against the base URI. |
URI |
getBaseURI() |
URI |
resolve(URI uri)
Returns the URI
resolved against the base URI. |
void |
setBaseURI(URI uri)
Sets base URI used by the handler.
|
public URI getBaseURI()
public void setBaseURI(URI uri)
XMLResource.URIHandlersetBaseURI in interface XMLResource.URIHandleruri - the new base URI.public URI resolve(URI uri)
XMLResource.URIHandlerresolved against the base URI.resolve in interface XMLResource.URIHandleruri - the URI to resolve.URI#resolve(URI)public URI deresolve(URI uri)
XMLResource.URIHandlerderesolved against the base URI.deresolve in interface XMLResource.URIHandleruri - the URI to resolve.URI#deresolve(URI)Copyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature