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 Object

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

Author:
Brett Porter

Constructor Summary
ScopeArtifactFilter(String scope)
           
 
Method Summary
 boolean equals(Object obj)
           
 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(String scope)
Method Detail

getScope

public String getScope()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

include

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


Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.