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 SummaryNested classes/interfaces inherited from interface org.apache.maven.api.services.ModelSourceModelSource.ModelLocator
- 
Method SummaryModifier 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 interface- ModelSource
 
- 
getPathDescription copied from interface:SourceProvides access the file to be parsed, if this source is backed by a file.
- 
openStreamDescription 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 interface- Source
- Returns:
- a byte stream to the source contents, never null
- Throws:
- IOException- in case of IO issue
 
- 
getLocationDescription 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 interface- Source
- Returns:
- a user-friendly hint about the location of the source, never null
 
- 
resolveDescription 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
- 
hashCodepublic int hashCode()
 
-