Class SetMembershipCondition


public class SetMembershipCondition extends Condition
Represents a set membership test on the form feature IN (integer1, integer2 ...)
Since:
5.1.21
Author:
bratseth
  • Constructor Details

    • SetMembershipCondition

      public SetMembershipCondition(String testValue, List<Object> setValues, String trueLabel, String falseLabel)
      Constructs a new instance of this class.
      Parameters:
      testValue - the name of the feature to test
      setValues - the set of values to compare to
      trueLabel - the label to jump to if the value is in the set
      falseLabel - the label to jumt to if the value is not in the set
  • Method Details

    • getSetValues

      public List<Object> getSetValues()
      Returns the unmodifiable set of values to check
    • conditionToRankingExpression

      protected String conditionToRankingExpression()
      Description copied from class: Condition
      Returns the ranking expression string for the condition part of this condition, i.e the ... part of
           if(leftValue ..., trueExpression, falseExpression)
       
      Specified by:
      conditionToRankingExpression in class Condition