Class AncestorOrSelfDependencyNodeFilter
java.lang.Object
org.apache.maven.shared.dependency.graph.filter.AncestorOrSelfDependencyNodeFilter
- All Implemented Interfaces:
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$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<DependencyNode>The list of nodes that this filter accepts ancestors-or-self of. -
Constructor Summary
ConstructorsConstructorDescriptionAncestorOrSelfDependencyNodeFilter(List<DependencyNode> descendantNodes) Creates a dependency node filter that only accepts nodes that are ancestors of, or equal to, the specified list of nodes.AncestorOrSelfDependencyNodeFilter(DependencyNode descendantNode) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(DependencyNode node) Gets whether this filter accepts the specified dependency node.private booleanisAncestorOrSelf(DependencyNode ancestorNode, DependencyNode descendantNode) Gets whether the first dependency node is an ancestor-or-self of the second.
-
Field Details
-
descendantNodes
The list of nodes that this filter accepts ancestors-or-self of.
-
-
Constructor Details
-
AncestorOrSelfDependencyNodeFilter
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
-
Method Details