public final class ArtifactDescriptorResult extends Object
| Constructor and Description | 
|---|
| ArtifactDescriptorResult(ArtifactDescriptorRequest request)Creates a new result for the specified request. | 
| Modifier and Type | Method and Description | 
|---|---|
| ArtifactDescriptorResult | addAlias(Artifact alias)Records the specified alias. | 
| ArtifactDescriptorResult | addDependency(Dependency dependency)Adds the specified direct dependency. | 
| ArtifactDescriptorResult | addException(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 locating the artifact descriptor. | 
| ArtifactDescriptorResult | addRepository(RemoteRepository repository)Adds the specified remote repository. | 
| Collection<Artifact> | getAliases()Gets the known aliases for this artifact. | 
| Artifact | getArtifact()Gets the artifact whose descriptor was read. | 
| List<Dependency> | getDependencies()Gets the list of direct dependencies of the artifact. | 
| List<Exception> | getExceptions()Gets the exceptions that occurred while reading the artifact descriptor. | 
| List<Dependency> | getManagedDependencies()Gets the dependency management information. | 
| Map<String,Object> | getProperties()Gets any additional information about the artifact in form of key-value pairs. | 
| List<Artifact> | getRelocations()Gets the relocations that were processed to read the artifact descriptor. | 
| 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(Collection<Artifact> aliases)Sets the aliases of the artifact. | 
| ArtifactDescriptorResult | setArtifact(Artifact artifact)Sets the artifact whose descriptor was read. | 
| ArtifactDescriptorResult | setDependencies(List<Dependency> dependencies)Sets the list of direct dependencies of the artifact. | 
| ArtifactDescriptorResult | setExceptions(List<Exception> exceptions)Sets the exceptions that occurred while reading the artifact descriptor. | 
| ArtifactDescriptorResult | setManagedDependencies(List<Dependency> dependencies)Sets the dependency management information. | 
| ArtifactDescriptorResult | setProperties(Map<String,Object> properties)Sets any additional information about the artifact in form of key-value pairs. | 
| ArtifactDescriptorResult | setRelocations(List<Artifact> relocations)Sets the relocations that were processed to read the artifact descriptor. | 
| ArtifactDescriptorResult | setRepositories(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. | 
| String | toString() | 
public ArtifactDescriptorResult(ArtifactDescriptorRequest request)
request - The descriptor request, must not be null.public ArtifactDescriptorRequest getRequest()
null.public List<Exception> getExceptions()
null.public ArtifactDescriptorResult setExceptions(List<Exception> exceptions)
exceptions - The exceptions that occurred, may be null.null.public ArtifactDescriptorResult addException(Exception exception)
exception - The exception to record, may be null.null.public List<Artifact> getRelocations()
getArtifact().null.public ArtifactDescriptorResult setRelocations(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 Collection<Artifact> getAliases()
null.public ArtifactDescriptorResult setAliases(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 List<Dependency> getDependencies()
nullpublic ArtifactDescriptorResult setDependencies(List<Dependency> dependencies)
dependencies - The list of direct dependencies, may be nullnull.public ArtifactDescriptorResult addDependency(Dependency dependency)
dependency - The direct dependency to add, may be null.null.public List<Dependency> getManagedDependencies()
public ArtifactDescriptorResult setManagedDependencies(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 List<RemoteRepository> getRepositories()
null.public ArtifactDescriptorResult setRepositories(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 Map<String,Object> getProperties()
null.public ArtifactDescriptorResult setProperties(Map<String,Object> properties)
properties - The additional information about the artifact, may be null.null.Copyright © 2010–2018 The Apache Software Foundation. All rights reserved.