public final class LocalArtifactRequest
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private Artifact |
artifact |
private java.lang.String |
context |
private java.util.List<RemoteRepository> |
repositories |
| Constructor and Description |
|---|
LocalArtifactRequest()
Creates an uninitialized query.
|
LocalArtifactRequest(Artifact artifact,
java.util.List<RemoteRepository> repositories,
java.lang.String context)
Creates a query with the specified properties.
|
| Modifier and Type | Method and Description |
|---|---|
Artifact |
getArtifact()
Gets the artifact to query for.
|
java.lang.String |
getContext()
Gets the resolution context.
|
java.util.List<RemoteRepository> |
getRepositories()
Gets the remote repositories to consider as sources of the artifact.
|
LocalArtifactRequest |
setArtifact(Artifact artifact)
Sets the artifact to query for.
|
LocalArtifactRequest |
setContext(java.lang.String context)
Sets the resolution context.
|
LocalArtifactRequest |
setRepositories(java.util.List<RemoteRepository> repositories)
Sets the remote repositories to consider as sources of the artifact.
|
java.lang.String |
toString() |
private Artifact artifact
private java.lang.String context
private java.util.List<RemoteRepository> repositories
public LocalArtifactRequest()
public LocalArtifactRequest(Artifact artifact, java.util.List<RemoteRepository> repositories, java.lang.String context)
artifact - The artifact to query for, may be null.repositories - The remote repositories that should be considered as potential sources for the artifact, may
be null or empty to only consider locally installed artifacts.context - The resolution context for the artifact, may be null.public Artifact getArtifact()
null if not set.public LocalArtifactRequest setArtifact(Artifact artifact)
artifact - The artifact, may be null.null.public java.lang.String getContext()
null.public LocalArtifactRequest setContext(java.lang.String context)
context - The resolution context, may be null.null.public java.util.List<RemoteRepository> getRepositories()
null.public LocalArtifactRequest setRepositories(java.util.List<RemoteRepository> repositories)
repositories - The remote repositories, may be null or empty to only consider locally installed
artifacts.null.public java.lang.String toString()
toString in class java.lang.Object