Package org.dspace.content.logic
Interface LogicalStatement
-
- All Known Implementing Classes:
AbstractCondition,AbstractOperator,And,BitstreamCountCondition,DefaultFilter,InCollectionCondition,InCommunityCondition,IsWithdrawnCondition,MetadataValueMatchCondition,MetadataValuesMatchCondition,Nand,Nor,Not,Or,ReadableByGroupCondition
public interface LogicalStatementThe base interface used by all logic classes: all operators and conditions are logical statements. All statements must accept an Item object and return a boolean result. The philosophy is that because Filter, Condition, Operator classes implement getResult(), they can all be used as sub-statements in other Filters and Operators.- Version:
- $Revision$
- Author:
- Kim Shepherd
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleangetResult(Context context, Item item)Get the result of logical evaluation for an item
-
-
-
Method Detail
-
getResult
boolean getResult(Context context, Item item) throws LogicalStatementException
Get the result of logical evaluation for an item- Parameters:
context- DSpace contextitem- Item to evaluate- Returns:
- boolean result of evaluation
- Throws:
LogicalStatementException
-
-