Class ArtifactDependencyNodeFilter

  • All Implemented Interfaces:
    DependencyNodeFilter

    public class ArtifactDependencyNodeFilter
    extends java.lang.Object
    implements DependencyNodeFilter
    A dependency node filter that delegates to an artifact filter.
    Since:
    1.1
    Version:
    $Id: ArtifactDependencyNodeFilter.java 1684260 2015-06-08 19:57:54Z rfscholte $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.apache.maven.artifact.resolver.filter.ArtifactFilter filter
      The artifact filter this dependency node filter delegates to.
    • 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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(DependencyNode node)
      Gets whether this filter accepts the specified dependency node.
      org.apache.maven.artifact.resolver.filter.ArtifactFilter getArtifactFilter()
      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
    • Field Detail

      • filter

        private final org.apache.maven.artifact.resolver.filter.ArtifactFilter filter
        The artifact filter this dependency node filter delegates to.
    • Constructor Detail

      • 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 Detail

      • 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