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

java.lang.Object
  extended by org.apache.maven.plugin.dependency.utils.filters.AbstractArtifactsFilter
      extended by org.apache.maven.plugin.dependency.utils.filters.ScopeFilter
All Implemented Interfaces:
ArtifactsFilter

public class ScopeFilter
extends AbstractArtifactsFilter

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

Constructor Summary
ScopeFilter(java.lang.String includeScope, java.lang.String excludeScope)
           
 
Method Summary
 java.util.Set filter(java.util.Set artifacts, org.apache.maven.plugin.logging.Log log)
          This function determines if filtering needs to be performed.
 java.lang.String getExcludeScope()
           
 java.lang.String getIncludeScope()
           
 void setExcludeScope(java.lang.String excludeScope)
           
 void setIncludeScope(java.lang.String scope)
           
 
Methods inherited from class org.apache.maven.plugin.dependency.utils.filters.AbstractArtifactsFilter
okToProcess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScopeFilter

public ScopeFilter(java.lang.String includeScope,
                   java.lang.String excludeScope)
Method Detail

filter

public java.util.Set filter(java.util.Set artifacts,
                            org.apache.maven.plugin.logging.Log log)
                     throws org.apache.maven.plugin.MojoExecutionException
This function determines if filtering needs to be performed. Excludes are ignored if Includes are used.

Parameters:
dependencies - the set of dependencies to filter.
Returns:
a Set of filtered dependencies.
Throws:
org.apache.maven.plugin.MojoExecutionException

getIncludeScope

public java.lang.String getIncludeScope()
Returns:
Returns the includeScope.

setIncludeScope

public void setIncludeScope(java.lang.String scope)
Parameters:
includeScope - The includeScope to set.

getExcludeScope

public java.lang.String getExcludeScope()
Returns:
Returns the excludeScope.

setExcludeScope

public void setExcludeScope(java.lang.String excludeScope)
Parameters:
excludeScope - The excludeScope to set.


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