public final class InstallResult
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.Collection<Artifact> |
artifacts |
private java.util.Collection<Metadata> |
metadata |
private InstallRequest |
request |
| Constructor and Description |
|---|
InstallResult(InstallRequest request)
Creates a new result for the specified request.
|
| Modifier and Type | Method and Description |
|---|---|
InstallResult |
addArtifact(Artifact artifact)
Adds the specified artifacts to the result.
|
InstallResult |
addMetadata(Metadata metadata)
Adds the specified metadata to this result.
|
java.util.Collection<Artifact> |
getArtifacts()
Gets the artifacts that got installed.
|
java.util.Collection<Metadata> |
getMetadata()
Gets the metadata that got installed.
|
InstallRequest |
getRequest()
Gets the install request that was made.
|
InstallResult |
setArtifacts(java.util.Collection<Artifact> artifacts)
Sets the artifacts that got installed.
|
InstallResult |
setMetadata(java.util.Collection<Metadata> metadata)
Sets the metadata that got installed.
|
java.lang.String |
toString() |
private final InstallRequest request
private java.util.Collection<Artifact> artifacts
private java.util.Collection<Metadata> metadata
public InstallResult(InstallRequest request)
request - The installation request, must not be null.public InstallRequest getRequest()
null.public java.util.Collection<Artifact> getArtifacts()
null.public InstallResult setArtifacts(java.util.Collection<Artifact> artifacts)
artifacts - The installed artifacts, may be null.null.public InstallResult addArtifact(Artifact artifact)
artifact - The installed artifact to add, may be null.null.public java.util.Collection<Metadata> getMetadata()
null.public InstallResult setMetadata(java.util.Collection<Metadata> metadata)
metadata - The installed metadata, may be null.null.public InstallResult addMetadata(Metadata metadata)
metadata - The installed metadata to add, may be null.null.public java.lang.String toString()
toString in class java.lang.Object