org.apache.maven.shared.dependency.tree.filter
public class StateDependencyNodeFilter extends java.lang.Object implements DependencyNodeFilter
Modifier and Type | Field and Description |
---|---|
static StateDependencyNodeFilter |
INCLUDED
A dependency node filter that only accepts included nodes.
|
Constructor and Description |
---|
StateDependencyNodeFilter(int state)
Creates a dependency node filter that only accepts dependency nodes of the specified state.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(DependencyNode node)
Gets whether this filter accepts the specified dependency node.
|
int |
getState()
Gets the dependency node state that this filter accepts.
|
public static final StateDependencyNodeFilter INCLUDED
public StateDependencyNodeFilter(int state)
state
- the state of dependency nodes to acceptjava.lang.IllegalArgumentException
- if the specified state is invalidpublic boolean accept(DependencyNode node)
accept
in interface DependencyNodeFilter
node
- the dependency node to checktrue
if this filter accepts the specified dependency nodepublic int getState()
Copyright © 2014. All Rights Reserved.