Class Filter.Expression

java.lang.Object
org.apache.uima.collection.impl.cpm.utils.Filter.Expression
Enclosing class:
Filter

public class Filter.Expression extends Object
Object containing single filter.
  • Constructor Details

    • Expression

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

    • setIsOrFilter

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

      protected void setIsAndFilter() throws ParseException
      Sets the is and filter.
      Throws:
      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