net.ggtools.grand.filters
Class ToNodeFilter

java.lang.Object
  extended by net.ggtools.grand.filters.AbstractGraphFilter
      extended by net.ggtools.grand.filters.GraphWalkFilter
          extended by net.ggtools.grand.filters.ToNodeFilter
All Implemented Interfaces:
GraphFilter, GraphConsumer, GraphProducer

public class ToNodeFilter
extends GraphWalkFilter

A graph filter returning all the nodes accessible from a specific node using only backward links. In ant this will extract the sub graph of all target depending on a specific target.

Author:
Christophe Labouisse

Field Summary
 
Fields inherited from class net.ggtools.grand.filters.AbstractGraphFilter
name
 
Constructor Summary
ToNodeFilter(java.lang.String nodeName)
          Creates a new filter.
 
Method Summary
 LinkFinder getLinkFinder()
          Returns an object finding the links to follow from a specific node.
 
Methods inherited from class net.ggtools.grand.filters.GraphWalkFilter
getFilteredNodes
 
Methods inherited from class net.ggtools.grand.filters.AbstractGraphFilter
getGraph, getGraphProducer, getName, getProducersGraph, setProducer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.ggtools.grand.filters.GraphFilter
getName
 
Methods inherited from interface net.ggtools.grand.graph.GraphProducer
getGraph
 
Methods inherited from interface net.ggtools.grand.graph.GraphConsumer
setProducer
 

Constructor Detail

ToNodeFilter

public ToNodeFilter(java.lang.String nodeName)
Creates a new filter.

Parameters:
nodeName - node to search from.
Method Detail

getLinkFinder

public LinkFinder getLinkFinder()
Description copied from class: GraphWalkFilter
Returns an object finding the links to follow from a specific node. This object will be used when walking the graph in GraphWalkFilter.getFilteredNodes() to find the filtered nodes.

Specified by:
getLinkFinder in class GraphWalkFilter
Returns:
the LinkFinder object used for filtering.
See Also:
LinkFinder


Copyright © 2004-2005 ggTools. All Rights Reserved.