Package org.eclipse.aether.installation
Class InstallResult
- java.lang.Object
-
- org.eclipse.aether.installation.InstallResult
-
public final class InstallResult extends Object
The result of installing artifacts and their accompanying metadata into the a remote repository.
-
-
Constructor Summary
Constructors Constructor Description InstallResult(InstallRequest request)Creates a new result for the specified request.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstallResultaddArtifact(Artifact artifact)Adds the specified artifacts to the result.InstallResultaddMetadata(Metadata metadata)Adds the specified metadata to this result.Collection<Artifact>getArtifacts()Gets the artifacts that got installed.Collection<Metadata>getMetadata()Gets the metadata that got installed.InstallRequestgetRequest()Gets the install request that was made.InstallResultsetArtifacts(Collection<Artifact> artifacts)Sets the artifacts that got installed.InstallResultsetMetadata(Collection<Metadata> metadata)Sets the metadata that got installed.StringtoString()
-
-
-
Constructor Detail
-
InstallResult
public InstallResult(InstallRequest request)
Creates a new result for the specified request.- Parameters:
request- The installation request, must not benull.
-
-
Method Detail
-
getRequest
public InstallRequest getRequest()
Gets the install request that was made.- Returns:
- The install request, never
null.
-
getArtifacts
public Collection<Artifact> getArtifacts()
Gets the artifacts that got installed.- Returns:
- The installed artifacts, never
null.
-
setArtifacts
public InstallResult setArtifacts(Collection<Artifact> artifacts)
Sets the artifacts that got installed.- Parameters:
artifacts- The installed artifacts, may benull.- Returns:
- This result for chaining, never
null.
-
addArtifact
public InstallResult addArtifact(Artifact artifact)
Adds the specified artifacts to the result.- Parameters:
artifact- The installed artifact to add, may benull.- Returns:
- This result for chaining, never
null.
-
getMetadata
public Collection<Metadata> getMetadata()
Gets the metadata that got installed. Note that due to automatically generated metadata, there might have been more metadata installed than originally specified in the install request.- Returns:
- The installed metadata, never
null.
-
setMetadata
public InstallResult setMetadata(Collection<Metadata> metadata)
Sets the metadata that got installed.- Parameters:
metadata- The installed metadata, may benull.- Returns:
- This result for chaining, never
null.
-
addMetadata
public InstallResult addMetadata(Metadata metadata)
Adds the specified metadata to this result.- Parameters:
metadata- The installed metadata to add, may benull.- Returns:
- This result for chaining, never
null.
-
-