Class PropertyFilter

java.lang.Object
com.aquima.interactions.trace.PropertyFilter
All Implemented Interfaces:
IPropertyFilter, Serializable

public class PropertyFilter extends Object implements Serializable, IPropertyFilter
This class may be used to create a filter.
Since:
9.2
Author:
A.Pragt
See Also:
  • Field Details

  • Constructor Details

    • PropertyFilter

      public PropertyFilter()
    • PropertyFilter

      public PropertyFilter(FilterOperator operator)
      Parameters:
      operator - The operator of the filter, may not be null
    • PropertyFilter

      public PropertyFilter(FilterOperator operator, boolean loweredIndex)
      Parameters:
      operator - The operator of the filter, may not be null
      loweredIndex - Boolean indicating if the property should behave with a lowered index, may not be null
  • Method Details

    • getOperator

      public FilterOperator getOperator()
      This method returns the operator of the filter.
      Returns:
      The operator of the filter.
    • setOperator

      public void setOperator(FilterOperator operator)
      This method sets the operator of the filter.
      Parameters:
      operator - The operator of the filter, may not be null.
    • hasLoweredIndex

      public boolean hasLoweredIndex()
      This method returns the operator of the filter.
      Returns:
      The operator of the filter.
    • getConditions

      public FilterCondition[] getConditions()
      This method returns all the conditions of the filter.
      Returns:
      The conditions of the filter.
    • addCondition

      public void addCondition(IValue value)
      This method adds an equals condition to the filter.
      Specified by:
      addCondition in interface IPropertyFilter
      Parameters:
      value - The value to be equal to, may be null.
    • addCondition

      public void addCondition(IValue value, ConditionOperator operator)
      This method adds a condition to the filter.
      Parameters:
      value - The value to compare, may be null
      operator - The operator to use during comparison, may not be null
    • addCondition

      public void addCondition(IValue value, ConditionOperator operator, boolean ignoreCase)
      This method adds a condition to the filter and specifies whether the condition is case-sensitive
      Parameters:
      value - the value to compare, may be null
      operator - the operator to use during comparison, may not be null
      ignoreCase - whether the comparison should be case-insensitive
    • addCondition

      public void addCondition(StringValue value, MatchMode matchMode, boolean negate)
      Description copied from interface: IPropertyFilter
      This is a convenience method that adds a LIKE condition.
      Specified by:
      addCondition in interface IPropertyFilter
      Parameters:
      value - the string value to match against
      matchMode - the match mode
      negate - whether to negate the condition