net.ggtools.grand.filters
Class MissingNodeFilter

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

public class MissingNodeFilter
extends AbstractGraphFilter
implements GraphFilter

A filter removing the missing nodes, that is nodes with Node.ATTR_MISSING_NODE set.

Author:
Christophe Labouisse

Field Summary
 
Fields inherited from class net.ggtools.grand.filters.AbstractGraphFilter
name
 
Constructor Summary
MissingNodeFilter()
           
 
Method Summary
protected  java.util.Collection getFilteredNodes()
          Get the nodes from the graph that pass the filter.
 
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

MissingNodeFilter

public MissingNodeFilter()
Method Detail

getFilteredNodes

protected java.util.Collection getFilteredNodes()
                                         throws GrandException
Description copied from class: AbstractGraphFilter
Get the nodes from the graph that pass the filter. This method should not alter the input graph. The returned collection may be read only and return UnsupportedOperationExceptionon modification methods.

Specified by:
getFilteredNodes in class AbstractGraphFilter
Returns:
a collection of nodes.
Throws:
GrandException - if the filtering cannot be done


Copyright © 2004-2005 ggTools. All Rights Reserved.