org.apache.maven.plugin.dependency.utils.filters
Class FilterArtifacts

java.lang.Object
  extended by org.apache.maven.plugin.dependency.utils.filters.FilterArtifacts

public class FilterArtifacts
extends java.lang.Object

Version:
$Id: FilterArtifacts.java 552528 2007-07-02 16:12:47Z markh $
Author:
Brian Fox

Constructor Summary
FilterArtifacts()
           
 
Method Summary
 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 filter(java.util.Set artifacts, org.apache.maven.plugin.logging.Log log)
           
 java.util.ArrayList getFilters()
           
 void setFilters(java.util.ArrayList filters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterArtifacts

public FilterArtifacts()
Method Detail

clearFilters

public void clearFilters()
Removes all of the elements from this list. The list will be empty after this call returns.


addFilter

public void addFilter(ArtifactsFilter filter)
Appends the specified element to the end of this list.

Parameters:
filter - element to be appended to this list.

addFilter

public 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 - index at which the specified element is to be inserted.
element - element to be inserted.
Throws:
java.lang.IndexOutOfBoundsException - if index is out of range (index < 0 || index > size()).

filter

public java.util.Set filter(java.util.Set artifacts,
                            org.apache.maven.plugin.logging.Log log)
                     throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

getFilters

public java.util.ArrayList getFilters()
Returns:
Returns the filters.

setFilters

public void setFilters(java.util.ArrayList filters)
Parameters:
filters - The filters to set.


Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.