net.sf.basedb.util.overview.filter
Class ItemTypeFilter
java.lang.Object
net.sf.basedb.util.overview.filter.ItemTypeFilter
- All Implemented Interfaces:
- Filter<Node>
public class ItemTypeFilter
- extends Object
- implements Filter<Node>
A filter implementation that mathces item types on nodes.
It will evaluate to true for all Node
:s whose
Node.getItemType()
method matches the given item
type.
- Version:
- 2.10
- Author:
- Nicklas
- Last modified
- $Date: 2009-02-05 14:39:25 +0100 (Thu, 05 Feb 2009) $
Constructor Summary |
ItemTypeFilter(Item itemType)
Create a filter that finds nodes that has an attached item of the
given item type. |
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 |
itemType
private final Item itemType
ItemTypeFilter
public ItemTypeFilter(Item itemType)
- Create a filter that finds nodes that has an attached item of the
given item type.
- Parameters:
itemType
- The item type to look for
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