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 matchingItemList.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(Annotatable item)
Evaluate if the given object should pass the filter or not.
-
-
-
Field Detail
-
itemType
private final Item itemType
-
subtype
private final ItemSubtype subtype
-
-
Constructor Detail
-
SubtypeFilter
public SubtypeFilter(ItemSubtype subtype)
-
-
Method Detail
-
evaluate
public boolean evaluate(Annotatable item)
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
-
-