|
||||||||||
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 | |
---|---|
java.io.File |
getFile()
Gets the file to the requested artifact. |
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(java.io.File file)
Sets the file to requested artifact. |
java.lang.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 java.io.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 this query.
null
.public LocalArtifactResult setFile(java.io.File file)
file
- The artifact file, may be null
.
null
.public boolean isAvailable()
true
if the artifact is available, false
otherwise.public LocalArtifactResult setAvailable(boolean available)
available
- true
if the artifact is available, false
otherwise.
null
.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |