org.apache.maven.shared.dependency.tree.filter
Class AncestorOrSelfDependencyNodeFilter
java.lang.Object
org.apache.maven.shared.dependency.tree.filter.AncestorOrSelfDependencyNodeFilter
- All Implemented Interfaces:
- DependencyNodeFilter
public class AncestorOrSelfDependencyNodeFilter
- extends Object
- implements DependencyNodeFilter
A dependency node filter than only accepts nodes that are ancestors of, or equal to, a given list of nodes.
- Since:
- 1.1
- Version:
- $Id: AncestorOrSelfDependencyNodeFilter.java 1100703 2011-05-08 08:27:33Z hboutemy $
- Author:
- Mark Hobson
Method Summary |
boolean |
accept(DependencyNode node)
Gets whether this filter accepts the specified dependency node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AncestorOrSelfDependencyNodeFilter
public AncestorOrSelfDependencyNodeFilter(DependencyNode descendantNode)
AncestorOrSelfDependencyNodeFilter
public AncestorOrSelfDependencyNodeFilter(List<DependencyNode> descendantNodes)
- Creates a dependency node filter that only accepts nodes that are ancestors of, or equal to, the specified list
of nodes.
- Parameters:
descendantNodes
- the list of nodes to accept ancestors-or-self of
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
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.