Package org.dspace.content.logic
Interface LogicalStatement
- All Known Implementing Classes:
AbstractCondition,AbstractOperator,And,BitstreamCountCondition,DefaultFilter,InCollectionCondition,InCommunityCondition,IsArchivedCondition,IsWithdrawnCondition,MetadataValueMatchCondition,MetadataValuesMatchCondition,Nand,Nor,Not,Or,ReadableByGroupCondition,TrueFilter
public interface LogicalStatement
The 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.
- Author:
- Kim Shepherd
-
Method Summary
-
Method Details
-
getResult
Get the result of logical evaluation for an item- Parameters:
context- DSpace contextitem- Item to evaluate- Returns:
- boolean result of evaluation
- Throws:
LogicalStatementException
-