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

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

public class ScopeArtifactFilter
extends java.lang.Object

Filter to only retain objects in the given artifactScope or better.

Version:
$Id: ScopeArtifactFilter.java 829934 2009-10-26 20:16:00Z bentmann $
Author:
Brett Porter

Constructor Summary
ScopeArtifactFilter(java.lang.String scope)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getScope()
           
 int hashCode()
           
 boolean include(Artifact artifact)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScopeArtifactFilter

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

getScope

public java.lang.String getScope()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

include

public boolean include(Artifact artifact)
Specified by:
include in interface ArtifactFilter


Copyright © 2001-2011 Apache Software Foundation. All Rights Reserved.