Class DefaultModelResolver.ResolverModelSource
java.lang.Object
org.apache.maven.internal.impl.resolver.DefaultModelResolver.ResolverModelSource
- All Implemented Interfaces:
ModelSource,Source
- Enclosing class:
- DefaultModelResolver
protected static class DefaultModelResolver.ResolverModelSource
extends Object
implements ModelSource
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.maven.api.services.ModelSource
ModelSource.ModelLocator -
Method Summary
Modifier and TypeMethodDescriptionbooleanProvides a user-friendly hint about the location of the source.getPath()Provides access the file to be parsed, if this source is backed by a file.inthashCode()Creates a new byte stream to the source contents.Returns a new source identified by a relative path.resolve(ModelSource.ModelLocator modelLocator, String relative)
-
Method Details
-
resolve
- Specified by:
resolvein interfaceModelSource
-
getPath
Description copied from interface:SourceProvides access the file to be parsed, if this source is backed by a file. -
openStream
Description copied from interface:SourceCreates a new byte stream to the source contents. Closing the returned stream is the responsibility of the caller.- Specified by:
openStreamin interfaceSource- Returns:
- a byte stream to the source contents, never
null - Throws:
IOException- in case of IO issue
-
getLocation
Description copied from interface:SourceProvides a user-friendly hint about the location of the source. This could be a local file path, a URI or just an empty string. The intention is to assist users during error reporting.- Specified by:
getLocationin interfaceSource- Returns:
- a user-friendly hint about the location of the source, never
null
-
resolve
Description copied from interface:SourceReturns a new source identified by a relative path. Implementation MUST be able to acceptrelativeparameter values that- use either / or \ file path separator,
- have .. parent directory references,
- point either at file or directory.
-
equals
-
hashCode
public int hashCode()
-