Class FilterArtifacts
- java.lang.Object
- 
- org.apache.maven.shared.artifact.filter.collection.FilterArtifacts
 
- 
 public class FilterArtifacts extends java.lang.Object- Author:
- Brian Fox
 
- 
- 
Constructor SummaryConstructors Constructor Description FilterArtifacts()Created new instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFilter(int index, ArtifactsFilter filter)Inserts the specified element at the specified position in this list.voidaddFilter(ArtifactsFilter filter)Appends the specified element to the end of this list.voidclearFilters()Removes all of the elements from this list.java.util.Set<Artifact>filter(java.util.Set<Artifact> artifacts)java.util.List<ArtifactsFilter>getFilters()voidsetFilters(java.util.List<ArtifactsFilter> filters)
 
- 
- 
- 
Method Detail- 
clearFilterspublic void clearFilters() Removes all of the elements from this list. The list will be empty after this call returns.
 - 
addFilterpublic void addFilter(ArtifactsFilter filter) Appends the specified element to the end of this list.- Parameters:
- filter- element to be appended to this list.
 
 - 
addFilterpublic void addFilter(int index, ArtifactsFilter filter)Inserts the specified element at the specified position in this list. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).- Parameters:
- index- at which index the specified filter is to be inserted.
- filter- the filter to be inserted.
- Throws:
- java.lang.IndexOutOfBoundsException- if index is out of range- (index < 0 || index > size()).
 
 - 
filterpublic java.util.Set<Artifact> filter(java.util.Set<Artifact> artifacts) throws ArtifactFilterException - Parameters:
- artifacts- The- Artifacts to filter.
- Returns:
- The resulting artifacts set.
- Throws:
- ArtifactFilterException- in case of a failure.
 
 - 
getFilterspublic java.util.List<ArtifactsFilter> getFilters() - Returns:
- the filters.
 
 - 
setFilterspublic void setFilters(java.util.List<ArtifactsFilter> filters) - Parameters:
- filters- The filters to set.
 
 
- 
 
-