2.17.2: 2011-06-17

net.sf.basedb.util.overview.filter
Class BasicItemFilter

java.lang.Object
  extended by net.sf.basedb.util.overview.filter.BasicItemFilter
All Implemented Interfaces:
Filter<Node>

public class BasicItemFilter
extends Object
implements Filter<Node>

A filter implementation that matches against the item that is attached to nodes. It will evaluate to true for all nodes that has the same item as the reference item.

Version:
2.10
Author:
Nicklas
Last modified
$Date: 2009-02-05 14:39:25 +0100 (Thu, 05 Feb 2009) $

Field Summary
private  BasicItem item
           
private  Item itemType
           
 
Constructor Summary
BasicItemFilter(BasicItem item)
          Create a filter that finds nodes that has the given item attached to it.
 
Method Summary
 boolean evaluate(Node node)
          Evaluate if the given object should pass the filter or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

itemType

private final Item itemType

item

private final BasicItem item
Constructor Detail

BasicItemFilter

public BasicItemFilter(BasicItem item)
Create a filter that finds nodes that has the given item attached to it.

Parameters:
item - The item to look for
Method Detail

evaluate

public boolean evaluate(Node node)
Description copied from interface: Filter
Evaluate if the given object should pass the filter or not.

Specified by:
evaluate in interface Filter<Node>
Parameters:
node - The object to evaluate
Returns:
TRUE if the object passes the filter, FALSE otherwise

2.17.2: 2011-06-17