Class AbstractOperator

  • All Implemented Interfaces:
    LogicalStatement
    Direct Known Subclasses:
    And, Nand, Nor, Or

    public abstract class AbstractOperator
    extends Object
    implements 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
    Version:
    $Revision$
    Author:
    Kim Shepherd
    • Constructor Detail

      • AbstractOperator

        public AbstractOperator()
        Default constructor
      • AbstractOperator

        public AbstractOperator​(List<LogicalStatement> statements)
        Constructor to create operator from some predefined statements
        Parameters:
        statements -
    • Method Detail

      • getStatements

        public List<LogicalStatement> getStatements()
        Get sub-statements for this operator
        Returns:
        list of sub-statements
      • setStatements

        public void setStatements​(List<LogicalStatement> statements)
        Set sub-statements for this operator, as defined in item-filters.xml
        Parameters:
        statements - list of logical statements