Class And
java.lang.Object
org.dspace.content.logic.operator.AbstractOperator
org.dspace.content.logic.operator.And
- All Implemented Interfaces:
LogicalStatement
An operator that implements AND by evaluating sub-statements and only returning
true if all sub-statements return true
- Author:
- Kim Shepherd
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.dspace.content.logic.operator.AbstractOperator
getStatements, setStatements
-
Constructor Details
-
And
public And()Default constructor
-
-
Method Details
-
getResult
Return true if ALL statements return true Return false otherwise- Specified by:
getResultin interfaceLogicalStatement- Overrides:
getResultin classAbstractOperator- Parameters:
context- DSpace contextitem- Item to evaluate- Returns:
- boolean result of AND
- Throws:
LogicalStatementException
-