Interface ArtifactSet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(Artifact artifact)
Adds an artifactsvoid
addAll(Collection<? extends Artifact> artifacts)
Adds a collection of artifactsvoid
addAll(ArtifactSet artifacts)
Adds a set of artifactsItemFilterSet
getCoverage()
Returns the item filter set that defines the coverage of the items in this artifact set.Artifact
getDirectory()
Returns the directory artifact ornull
.Artifact
getPrimaryData()
Returns the primary data artifact ornull
.boolean
isEmpty()
Checks if this set is empty.Collection<Artifact>
removed()
Returns the collection of removed artifactsint
size()
Returns the number of artifacts in this set.Collection<Artifact>
values()
Returns a collection of all artifactsCollection<Artifact>
values(ArtifactType type)
Returns a collection of all artifacts that have the given type.
-
-
-
Method Detail
-
getCoverage
ItemFilterSet getCoverage()
Returns the item filter set that defines the coverage of the items in this artifact set.- Returns:
- the item filter set.
-
addAll
void addAll(Collection<? extends Artifact> artifacts)
Adds a collection of artifacts- Parameters:
artifacts
- the artifacts collection
-
addAll
void addAll(ArtifactSet artifacts)
Adds a set of artifacts- Parameters:
artifacts
- the artifacts set
-
add
void add(Artifact artifact)
Adds an artifacts- Parameters:
artifact
- the artifact to add- Throws:
IllegalArgumentException
- if more than 1 primary data artifact is added
-
getPrimaryData
Artifact getPrimaryData()
Returns the primary data artifact ornull
.- Returns:
- the primary data artifact or
null
.
-
getDirectory
Artifact getDirectory()
Returns the directory artifact ornull
.- Returns:
- the directory artifact or
null
.
-
isEmpty
boolean isEmpty()
Checks if this set is empty.- Returns:
true
if this set is empty.
-
size
int size()
Returns the number of artifacts in this set.- Returns:
- the number of artifacts in this set.
-
values
Collection<Artifact> values(ArtifactType type)
Returns a collection of all artifacts that have the given type.- Parameters:
type
- the type of the artifacts to return- Returns:
- the artifacts
-
values
Collection<Artifact> values()
Returns a collection of all artifacts- Returns:
- the artifacts
-
removed
Collection<Artifact> removed()
Returns the collection of removed artifacts- Returns:
- the removed artifacts
-
-