|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sonatype.aether.resolution.ArtifactDescriptorResult
public class ArtifactDescriptorResult
The result from reading an artifact descriptor.
RepositorySystem.readArtifactDescriptor(RepositorySystemSession, ArtifactDescriptorRequest)
Constructor Summary | |
---|---|
ArtifactDescriptorResult(ArtifactDescriptorRequest request)
Creates a new result for the specified request. |
Method Summary | |
---|---|
ArtifactDescriptorResult |
addAlias(Artifact alias)
Records the specified alias. |
ArtifactDescriptorResult |
addDependency(Dependency dependency)
Adds the specified direct dependency. |
ArtifactDescriptorResult |
addException(java.lang.Exception exception)
Records the specified exception while reading the artifact descriptor. |
ArtifactDescriptorResult |
addManagedDependency(Dependency dependency)
Adds the specified managed dependency. |
ArtifactDescriptorResult |
addRelocation(Artifact artifact)
Records the specified relocation hop while location the artifact descriptor. |
ArtifactDescriptorResult |
addRepository(RemoteRepository repository)
Adds the specified remote repository. |
java.util.Collection<Artifact> |
getAliases()
Gets the known aliases for this artifact. |
Artifact |
getArtifact()
Gets the artifact whose descriptor was read. |
java.util.List<Dependency> |
getDependencies()
Gets the list of direct dependencies of the artifact. |
java.util.List<java.lang.Exception> |
getExceptions()
Gets the exceptions that occurred while reading the artifact descriptor. |
java.util.List<Dependency> |
getManagedDependencies()
Gets the dependency management information. |
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Gets any additional information about the artifact in form of key-value pairs. |
java.util.List<Artifact> |
getRelocations()
Gets the relocations that were processed to read the artifact descriptor. |
java.util.List<RemoteRepository> |
getRepositories()
Gets the remote repositories listed in the artifact descriptor. |
ArtifactRepository |
getRepository()
Gets the repository from which the descriptor was eventually resolved. |
ArtifactDescriptorRequest |
getRequest()
Gets the descriptor request that was made. |
ArtifactDescriptorResult |
setAliases(java.util.Collection<Artifact> aliases)
Sets the aliases of the artifact. |
ArtifactDescriptorResult |
setArtifact(Artifact artifact)
Sets the artifact whose descriptor was read. |
ArtifactDescriptorResult |
setDependencies(java.util.List<Dependency> dependencies)
Sets the list of direct dependencies of the artifact. |
ArtifactDescriptorResult |
setExceptions(java.util.List<java.lang.Exception> exceptions)
Sets the exceptions that occurred while reading the artifact descriptor. |
ArtifactDescriptorResult |
setManagedDependencies(java.util.List<Dependency> dependencies)
Sets the dependency management information. |
ArtifactDescriptorResult |
setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
Sets any additional information about the artifact in form of key-value pairs. |
ArtifactDescriptorResult |
setRelocations(java.util.List<Artifact> relocations)
Sets the relocations that were processed to read the artifact descriptor. |
ArtifactDescriptorResult |
setRepositories(java.util.List<RemoteRepository> repositories)
Sets the remote repositories listed in the artifact descriptor. |
ArtifactDescriptorResult |
setRepository(ArtifactRepository repository)
Sets the repository from which the descriptor was resolved. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ArtifactDescriptorResult(ArtifactDescriptorRequest request)
request
- The descriptor request, must not be null
.Method Detail |
---|
public ArtifactDescriptorRequest getRequest()
null
.public java.util.List<java.lang.Exception> getExceptions()
null
.public ArtifactDescriptorResult setExceptions(java.util.List<java.lang.Exception> exceptions)
exceptions
- The exceptions that occurred, may be null
.
null
.public ArtifactDescriptorResult addException(java.lang.Exception exception)
exception
- The exception to record, may be null
.
null
.public java.util.List<Artifact> getRelocations()
getArtifact()
.
null
.public ArtifactDescriptorResult setRelocations(java.util.List<Artifact> relocations)
relocations
- The relocations that were processed, may be null
.
null
.public ArtifactDescriptorResult addRelocation(Artifact artifact)
artifact
- The artifact that got relocated, may be null
.
null
.public java.util.Collection<Artifact> getAliases()
null
.public ArtifactDescriptorResult setAliases(java.util.Collection<Artifact> aliases)
aliases
- The aliases of the artifact, may be null
.
null
.public ArtifactDescriptorResult addAlias(Artifact alias)
alias
- The alias for the artifact, may be null
.
null
.public Artifact getArtifact()
null
.public ArtifactDescriptorResult setArtifact(Artifact artifact)
artifact
- The artifact whose descriptor was read, may be null
.
null
.public ArtifactRepository getRepository()
null
if unknown.public ArtifactDescriptorResult setRepository(ArtifactRepository repository)
repository
- The repository from which the descriptor was resolved, may be null
.
null
.public java.util.List<Dependency> getDependencies()
null
public ArtifactDescriptorResult setDependencies(java.util.List<Dependency> dependencies)
dependencies
- The list of direct dependencies, may be null
null
.public ArtifactDescriptorResult addDependency(Dependency dependency)
dependency
- The direct dependency to add, may be null
.
null
.public java.util.List<Dependency> getManagedDependencies()
public ArtifactDescriptorResult setManagedDependencies(java.util.List<Dependency> dependencies)
dependencies
- The dependency management information, may be null
.
null
.public ArtifactDescriptorResult addManagedDependency(Dependency dependency)
dependency
- The managed dependency to add, may be null
.
null
.public java.util.List<RemoteRepository> getRepositories()
null
.public ArtifactDescriptorResult setRepositories(java.util.List<RemoteRepository> repositories)
repositories
- The remote repositories listed in the artifact descriptor, may be null
.
null
.public ArtifactDescriptorResult addRepository(RemoteRepository repository)
repository
- The remote repository to add, may be null
.
null
.public java.util.Map<java.lang.String,java.lang.Object> getProperties()
null
.public ArtifactDescriptorResult setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
properties
- The additional information about the artifact, may be null
.
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 |