Class Filter.Expression

  • Enclosing class:
    Filter

    public class Filter.Expression
    extends java.lang.Object
    Object containing single filter.
    • Constructor Detail

      • Expression

        public Expression​(Filter aFilter)
        Instantiates a new expression.
        Parameters:
        aFilter - the a filter
    • Method Detail

      • setIsOrFilter

        protected void setIsOrFilter()
                              throws java.text.ParseException
        Sets the is or filter.
        Throws:
        java.text.ParseException - the parse exception
      • setIsAndFilter

        protected void setIsAndFilter()
                               throws java.text.ParseException
        Sets the is and filter.
        Throws:
        java.text.ParseException - the parse exception
      • isOrFilter

        public boolean isOrFilter()
        Checks if is or filter.
        Returns:
        true, if is or filter
      • isAndFilter

        public boolean isAndFilter()
        Checks if is and filter.
        Returns:
        true, if is and filter
      • setLeftPart

        public void setLeftPart​(Filter.LeftPart aLP)
        Sets the left part.
        Parameters:
        aLP - the new left part
      • setRightPart

        public void setRightPart​(Filter.RightPart aRP)
        Sets the right part.
        Parameters:
        aRP - the new right part
      • setOperand

        public void setOperand​(Filter.Operand aOP)
        Sets the operand.
        Parameters:
        aOP - the new operand
      • hasLeftPart

        public boolean hasLeftPart()
        Checks for left part.
        Returns:
        true, if successful
      • hasRightPart

        public boolean hasRightPart()
        Checks for right part.
        Returns:
        true, if successful
      • hasOperand

        public boolean hasOperand()
        Checks for operand.
        Returns:
        true, if successful
      • getLeftPart

        public Filter.LeftPart getLeftPart()
        Gets the left part.
        Returns:
        the left part
      • getRightPart

        public Filter.RightPart getRightPart()
        Gets the right part.
        Returns:
        the right part
      • getOperand

        public Filter.Operand getOperand()
        Gets the operand.
        Returns:
        the operand