org.apache.maven.shared.dependency.tree.filter
Class StateDependencyNodeFilter

java.lang.Object
  extended by org.apache.maven.shared.dependency.tree.filter.StateDependencyNodeFilter
All Implemented Interfaces:
DependencyNodeFilter

public class StateDependencyNodeFilter
extends Object
implements DependencyNodeFilter

A dependency node filter that accepts nodes depending on their state.

Since:
1.1
Version:
$Id: StateDependencyNodeFilter.java 1100703 2011-05-08 08:27:33Z hboutemy $
Author:
Mark Hobson

Field Summary
static StateDependencyNodeFilter INCLUDED
          A dependency node filter that only accepts included nodes.
 
Constructor Summary
StateDependencyNodeFilter(int state)
          Creates a dependency node filter that only accepts dependency nodes of the specified state.
 
Method Summary
 boolean accept(DependencyNode node)
          Gets whether this filter accepts the specified dependency node.
 int getState()
          Gets the dependency node state that this filter accepts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INCLUDED

public static final StateDependencyNodeFilter INCLUDED
A dependency node filter that only accepts included nodes.

Constructor Detail

StateDependencyNodeFilter

public StateDependencyNodeFilter(int state)
Creates a dependency node filter that only accepts dependency nodes of the specified state.

Parameters:
state - the state of dependency nodes to accept
Throws:
IllegalArgumentException - if the specified state is invalid
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

getState

public int getState()
Gets the dependency node state that this filter accepts.

Returns:
the dependency node state that this filter accepts


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.