Class Nand
- java.lang.Object
-
- org.dspace.content.logic.operator.AbstractOperator
-
- org.dspace.content.logic.operator.Nand
-
- All Implemented Interfaces:
LogicalStatement
public class Nand extends AbstractOperator
An operator that implements NAND by negating an AND operation- Author:
- Kim Shepherd
-
-
Constructor Summary
Constructors Constructor Description Nand()Default constructorNand(List<LogicalStatement> statements)Constructor that accepts predefined list of statements as defined in item-filters.xml
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetResult(Context context, Item item)Return true if the result of AND'ing all sub-statements is false (ie.-
Methods inherited from class org.dspace.content.logic.operator.AbstractOperator
getStatements, setStatements
-
-
-
-
Constructor Detail
-
Nand
public Nand()
Default constructor
-
Nand
public Nand(List<LogicalStatement> statements)
Constructor that accepts predefined list of statements as defined in item-filters.xml- Parameters:
statements- List of logical statements
-
-
Method Detail
-
getResult
public boolean getResult(Context context, Item item) throws LogicalStatementException
Return true if the result of AND'ing all sub-statements is false (ie. a NOT(AND()) Return false if not- Specified by:
getResultin interfaceLogicalStatement- Overrides:
getResultin classAbstractOperator- Parameters:
context- DSpace contextitem- Item to evaluate- Returns:
- boolean result of NAND
- Throws:
LogicalStatementException
-
-