Class AbstractOperator
java.lang.Object
org.dspace.content.logic.operator.AbstractOperator
- All Implemented Interfaces:
LogicalStatement
Abstract class for an operator.
An operator contains a list of logical statements (conditions or more operators) and depending on the kind
of operator (AND, OR, NOT, etc.) the results of some or all sub-statements are evaluated and returned
as a logical result
- Author:
- Kim Shepherd
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorAbstractOperator(List<LogicalStatement> statements) Constructor to create operator from some predefined statements -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the result of logical evaluation for an itemGet sub-statements for this operatorvoidsetStatements(List<LogicalStatement> statements) Set sub-statements for this operator, as defined in item-filters.xml
-
Constructor Details
-
AbstractOperator
public AbstractOperator()Default constructor -
AbstractOperator
Constructor to create operator from some predefined statements- Parameters:
statements-
-
-
Method Details
-
getStatements
Get sub-statements for this operator- Returns:
- list of sub-statements
-
setStatements
Set sub-statements for this operator, as defined in item-filters.xml- Parameters:
statements- list of logical statements
-
getResult
Description copied from interface:LogicalStatementGet the result of logical evaluation for an item- Specified by:
getResultin interfaceLogicalStatement- Parameters:
context- DSpace contextitem- Item to evaluate- Returns:
- boolean result of evaluation (of sub-statements)
- Throws:
LogicalStatementException
-