Class FileUpURIResolver
java.lang.Object
org.eclipse.epsilon.eol.execute.context.uris.AbstractUpURIResolver
org.eclipse.epsilon.eol.execute.context.uris.FileUpURIResolver
- All Implemented Interfaces:
IModuleURIResolver
- Direct Known Subclasses:
JarUpURIResolver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfirstAncestorDirectoryNamed(Path p, String name) Given a pathpand aname, returns the subpath from the root ofpto the last name component whose name is equal to (included), if it exists.protected booleanpathEndsWith(Path p, Path suffix) Attempts to resolve the givenuri.resolveUpViaPaths(URI uri, URI sourceModuleURI) Methods inherited from class org.eclipse.epsilon.eol.execute.context.uris.AbstractUpURIResolver
validateUpUri
-
Constructor Details
-
FileUpURIResolver
public FileUpURIResolver()
-
-
Method Details
-
resolve
public Optional<URI> resolve(URI uri, IModule parentModule, URI baseUri) throws URISyntaxException, IOException Description copied from interface:IModuleURIResolverAttempts to resolve the givenuri. The resolver is given theparentModuleandbaseUrithat should be used as context.- Specified by:
resolvein interfaceIModuleURIResolver- Returns:
- Non-empty Optional with the resolved URI if successful, or empty Optional if the URI could not be resolved.
- Throws:
URISyntaxExceptionIOException
-
resolveUpViaPaths
protected Optional<URI> resolveUpViaPaths(URI uri, URI sourceModuleURI) throws URISyntaxException, IOException - Throws:
URISyntaxExceptionIOException
-
firstAncestorDirectoryNamed
Given a pathpand aname, returns the subpath from the root ofpto the last name component whose name is equal to (included), if it exists. -
pathEndsWith
-