|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sonatype.aether.repository.LocalArtifactResult
public class LocalArtifactResult
A result from the local repository about the existence of an artifact.
LocalRepositoryManager.find(RepositorySystemSession, LocalArtifactRequest)
Constructor Summary | |
---|---|
LocalArtifactResult(LocalArtifactRequest request)
Creates a new result for the specified request. |
Method Summary | |
---|---|
File |
getFile()
Gets the file to the requested artifact. |
RemoteRepository |
getRepository()
Gets the (first) remote repository from which the artifact was cached (if any). |
LocalArtifactRequest |
getRequest()
Gets the request corresponding to this result. |
boolean |
isAvailable()
Indicates whether the requested artifact is available for use. |
LocalArtifactResult |
setAvailable(boolean available)
Sets whether the artifact is available. |
LocalArtifactResult |
setFile(File file)
Sets the file to requested artifact. |
LocalArtifactResult |
setRepository(RemoteRepository repository)
Sets the (first) remote repository from which the artifact was cached. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LocalArtifactResult(LocalArtifactRequest request)
request
- The local artifact request, must not be null
.Method Detail |
---|
public LocalArtifactRequest getRequest()
null
.public File getFile()
isAvailable()
returns true
. An artifact file can be found but considered unavailable if the artifact was cached from a
remote repository that is not part of the list of remote repositories used for the query.
null
.public LocalArtifactResult setFile(File file)
file
- The artifact file, may be null
.
null
.public boolean isAvailable()
true
if the artifact is available, false
otherwise.LocalArtifactRequest.getRepositories()
public LocalArtifactResult setAvailable(boolean available)
available
- true
if the artifact is available, false
otherwise.
null
.public RemoteRepository getRepository()
null
if unkown or if
the artifact has been locally installed.LocalArtifactRequest.getRepositories()
public LocalArtifactResult setRepository(RemoteRepository repository)
repository
- The remote repository from which the artifact was originally retrieved, maybe null
if
unknown or if the artifact has been locally installed.
null
.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |