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 |
resolve(URI uri)
Returns the URI
resolved against the base URI. |
void |
setBaseURI(URI uri)
Sets base URI used by the handler.
|
protected URI baseURI
protected boolean resolve
public void setBaseURI(URI uri)
XMLResource.URIHandler
setBaseURI
in interface XMLResource.URIHandler
uri
- the new base URI.public URI resolve(URI uri)
XMLResource.URIHandler
resolved
against the base URI.resolve
in interface XMLResource.URIHandler
uri
- the URI to resolve.URI.resolve(URI)
public URI deresolve(URI uri)
XMLResource.URIHandler
deresolved
against the base URI.deresolve
in interface XMLResource.URIHandler
uri
- the URI to resolve.URI.deresolve(URI)