org.apache.maven.shared.artifact.filter
Class ScopeArtifactFilter

java.lang.Object
  extended by org.apache.maven.shared.artifact.filter.ScopeArtifactFilter
All Implemented Interfaces:
org.apache.maven.artifact.resolver.filter.ArtifactFilter, StatisticsReportingArtifactFilter

public class ScopeArtifactFilter
extends java.lang.Object
implements org.apache.maven.artifact.resolver.filter.ArtifactFilter, StatisticsReportingArtifactFilter

TODO: include in maven-artifact in future


Field Summary
private  boolean compileScope
           
private  boolean compileScopeHit
           
private  java.util.List filteredArtifactIds
           
private  boolean providedScope
           
private  boolean providedScopeHit
           
private  boolean runtimeScope
           
private  boolean runtimeScopeHit
           
private  boolean systemScope
           
private  boolean systemScopeHit
           
private  boolean testScope
           
private  boolean testScopeHit
           
 
Constructor Summary
ScopeArtifactFilter(java.lang.String scope)
           
 
Method Summary
 boolean hasMissedCriteria()
           
 boolean include(org.apache.maven.artifact.Artifact artifact)
           
 void reportFilteredArtifacts(org.codehaus.plexus.logging.Logger logger)
           
 void reportMissedCriteria(org.codehaus.plexus.logging.Logger logger)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

compileScope

private final boolean compileScope

runtimeScope

private final boolean runtimeScope

testScope

private final boolean testScope

providedScope

private final boolean providedScope

systemScope

private final boolean systemScope

compileScopeHit

private boolean compileScopeHit

runtimeScopeHit

private boolean runtimeScopeHit

testScopeHit

private boolean testScopeHit

providedScopeHit

private boolean providedScopeHit

systemScopeHit

private boolean systemScopeHit

filteredArtifactIds

private java.util.List filteredArtifactIds
Constructor Detail

ScopeArtifactFilter

public ScopeArtifactFilter(java.lang.String scope)
Method Detail

include

public boolean include(org.apache.maven.artifact.Artifact artifact)
Specified by:
include in interface org.apache.maven.artifact.resolver.filter.ArtifactFilter

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

reportFilteredArtifacts

public void reportFilteredArtifacts(org.codehaus.plexus.logging.Logger logger)
Specified by:
reportFilteredArtifacts in interface StatisticsReportingArtifactFilter

reportMissedCriteria

public void reportMissedCriteria(org.codehaus.plexus.logging.Logger logger)
Specified by:
reportMissedCriteria in interface StatisticsReportingArtifactFilter

hasMissedCriteria

public boolean hasMissedCriteria()
Specified by:
hasMissedCriteria in interface StatisticsReportingArtifactFilter