Class FilterArtifacts
java.lang.Object
org.apache.maven.shared.artifact.filter.collection.FilterArtifacts
FilterArtifacts class.
- Author:
- Brian Fox
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFilter
(int index, ArtifactsFilter filter) Inserts the specified element at the specified position in this list.void
addFilter
(ArtifactsFilter filter) Appends the specified element to the end of this list.void
Removes all of the elements from this list.Set<org.apache.maven.artifact.Artifact>
filter.Getter for the fieldfilters
.void
setFilters
(List<ArtifactsFilter> filters) Setter for the fieldfilters
.
-
Constructor Details
-
FilterArtifacts
public FilterArtifacts()Created new instance.
-
-
Method Details
-
clearFilters
public void clearFilters()Removes all of the elements from this list. The list will be empty after this call returns. -
filter
public Set<org.apache.maven.artifact.Artifact> filter(Set<org.apache.maven.artifact.Artifact> artifacts) throws ArtifactFilterException filter.
- Parameters:
artifacts
- TheArtifact
s to filter.- Returns:
- The resulting artifacts set.
- Throws:
ArtifactFilterException
- in case of a failure.
-
getFilters
Getter for the field
filters
.- Returns:
- the filters.
-
setFilters
Setter for the field
filters
.- Parameters:
filters
- The filters to set.
-