Class FilterArtifacts
java.lang.Object
org.apache.maven.shared.artifact.filter.collection.FilterArtifacts
- Version:
- $Id: FilterArtifacts.java 1716978 2015-11-28 14:47:04Z khmarbaise $
- Author:
- Brian Fox
-
Constructor Summary
Constructors -
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>
void
setFilters
(List<ArtifactsFilter> filters)
-
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 - Parameters:
artifacts
- TheArtifact
s to filter.- Returns:
- The resulting artifacts set.
- Throws:
ArtifactFilterException
- in case of a failure.
-
getFilters
- Returns:
- the filters.
-
setFilters
- Parameters:
filters
- The filters to set.
-