Class ArtifactDependencyNodeFilter

java.lang.Object
org.apache.maven.shared.dependency.graph.filter.ArtifactDependencyNodeFilter
All Implemented Interfaces:
DependencyNodeFilter

public class ArtifactDependencyNodeFilter extends Object implements DependencyNodeFilter
A dependency node filter that delegates to an artifact filter.
Since:
1.1
Version:
$Id$
Author:
Mark Hobson
  • Constructor Summary

    Constructors
    Constructor
    Description
    ArtifactDependencyNodeFilter(org.apache.maven.artifact.resolver.filter.ArtifactFilter filter)
    Creates a dependency node filter that delegates to the specified artifact filter.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Gets whether this filter accepts the specified dependency node.
    org.apache.maven.artifact.resolver.filter.ArtifactFilter
    Gets the artifact filter this dependency node filter delegates to.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ArtifactDependencyNodeFilter

      public ArtifactDependencyNodeFilter(org.apache.maven.artifact.resolver.filter.ArtifactFilter filter)
      Creates a dependency node filter that delegates to the specified artifact filter.
      Parameters:
      filter - the artifact filter to delegate to
  • Method Details

    • accept

      public boolean accept(DependencyNode node)
      Gets whether this filter accepts the specified dependency node.
      Specified by:
      accept in interface DependencyNodeFilter
      Parameters:
      node - the dependency node to check
      Returns:
      true if this filter accepts the specified dependency node
    • getArtifactFilter

      public org.apache.maven.artifact.resolver.filter.ArtifactFilter getArtifactFilter()
      Gets the artifact filter this dependency node filter delegates to.
      Returns:
      the artifact filter this dependency node filter delegates to