Class Or
java.lang.Object
org.dspace.content.logic.operator.AbstractOperator
org.dspace.content.logic.operator.Or
- All Implemented Interfaces:
LogicalStatement
An operator that implements OR by evaluating sub-statements and returns
true if one or more sub-statements return true
- Author:
- Kim Shepherd
-
Constructor Summary
ConstructorsConstructorDescriptionOr()Default constructorOr(List<LogicalStatement> statements) Constructor that accepts predefined list of statements as defined in item-filters.xml -
Method Summary
Methods inherited from class org.dspace.content.logic.operator.AbstractOperator
getStatements, setStatements
-
Constructor Details
-
Or
public Or()Default constructor -
Or
Constructor that accepts predefined list of statements as defined in item-filters.xml- Parameters:
statements- List of logical statements
-
-
Method Details
-
getResult
Return true if any sub-statement returns true Return false otherwise- Specified by:
getResultin interfaceLogicalStatement- Overrides:
getResultin classAbstractOperator- Parameters:
context- DSpace contextitem- Item to evaluate- Returns:
- boolean result of OR
- Throws:
LogicalStatementException
-