public class FilterArtifacts
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<ArtifactsFilter> |
filters |
| Constructor and Description |
|---|
FilterArtifacts()
Created new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFilter(ArtifactsFilter filter)
Appends the specified element to the end of this list.
|
void |
addFilter(int index,
ArtifactsFilter filter)
Inserts the specified element at the specified position in this list.
|
void |
clearFilters()
Removes all of the elements from this list.
|
java.util.Set<org.apache.maven.artifact.Artifact> |
filter(java.util.Set<org.apache.maven.artifact.Artifact> artifacts) |
java.util.List<ArtifactsFilter> |
getFilters() |
void |
setFilters(java.util.List<ArtifactsFilter> filters) |
private java.util.List<ArtifactsFilter> filters
public void clearFilters()
public void addFilter(ArtifactsFilter filter)
filter - element to be appended to this list.public void addFilter(int index,
ArtifactsFilter filter)
index - at which index the specified filter is to be inserted.filter - the filter to be inserted.java.lang.IndexOutOfBoundsException - if index is out of range (index < 0 || index > size()).public java.util.Set<org.apache.maven.artifact.Artifact> filter(java.util.Set<org.apache.maven.artifact.Artifact> artifacts)
throws ArtifactFilterException
artifacts - The Artifacts to filter.ArtifactFilterException - in case of a failure.public java.util.List<ArtifactsFilter> getFilters()
public void setFilters(java.util.List<ArtifactsFilter> filters)
filters - The filters to set.