Class SubtypeFilter
java.lang.Object
net.sf.basedb.clients.web.extensions.list.SubtypeFilter
- All Implemented Interfaces:
Filter<Annotatable>
public class SubtypeFilter extends Object implements Filter<Annotatable>
Filter implementation that accept (annotatable) items of a given subtype.
It can also accept Item lists with a matching
ItemList.getItemSubtype()
(or without subtype if the member type matches).- Since:
- 3.16
- Author:
- nicklas
-
Field Summary
Fields Modifier and Type Field Description private Item
itemType
private ItemSubtype
subtype
-
Constructor Summary
Constructors Constructor Description SubtypeFilter(ItemSubtype subtype)
-
Method Summary
Modifier and Type Method Description boolean
evaluate(Annotatable item)
Evaluate if the given object should pass the filter or not.
-
Field Details
-
itemType
-
subtype
-
-
Constructor Details
-
SubtypeFilter
-
-
Method Details
-
evaluate
Description copied from interface:Filter
Evaluate if the given object should pass the filter or not.- Specified by:
evaluate
in interfaceFilter<Annotatable>
- Parameters:
item
- The object to evaluate- Returns:
- TRUE if the object passes the filter, FALSE otherwise
-