org.jboss.shotoku.search
Class NodeFilter

java.lang.Object
  extended by org.jboss.shotoku.search.NodeFilter
All Implemented Interfaces:
SearchParameter
Direct Known Subclasses:
BooleanNodeFilter

public abstract class NodeFilter
extends java.lang.Object
implements SearchParameter

Author:
Adam Warski (adamw@aster.pl)

Constructor Summary
NodeFilter()
           
 
Method Summary
abstract  Node filterNode(Node node)
          Filters the given node.
 NodeList transform(NodeList list, ContentManager cm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeFilter

public NodeFilter()
Method Detail

filterNode

public abstract Node filterNode(Node node)
Filters the given node.

Parameters:
node - Node to filter.
Returns:
A node that should be included in the final result or null, if the nothing is to be included.

transform

public NodeList transform(NodeList list,
                          ContentManager cm)
Specified by:
transform in interface SearchParameter


Copyright © -2006 . All Rights Reserved.