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 TypeMethodDescriptionboolean
Provides 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.int
hashCode()
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:
resolve
in interfaceModelSource
-
getPath
Description copied from interface:Source
Provides access the file to be parsed, if this source is backed by a file. -
openStream
Description copied from interface:Source
Creates a new byte stream to the source contents. Closing the returned stream is the responsibility of the caller.- Specified by:
openStream
in interfaceSource
- Returns:
- a byte stream to the source contents, never
null
- Throws:
IOException
- in case of IO issue
-
getLocation
Description copied from interface:Source
Provides 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:
getLocation
in interfaceSource
- Returns:
- a user-friendly hint about the location of the source, never
null
-
resolve
Description copied from interface:Source
Returns a new source identified by a relative path. Implementation MUST be able to acceptrelative
parameter values that- use either / or \ file path separator,
- have .. parent directory references,
- point either at file or directory.
-
equals
-
hashCode
public int hashCode()
-