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 Summary

      Constructors 
      Constructor Description
      SetMembershipCondition​(java.lang.String testValue, java.util.List<java.lang.Object> setValues, java.lang.String trueLabel, java.lang.String falseLabel)
      Constructs a new instance of this class.
    • Constructor Detail

      • SetMembershipCondition

        public SetMembershipCondition​(java.lang.String testValue,
                                      java.util.List<java.lang.Object> setValues,
                                      java.lang.String trueLabel,
                                      java.lang.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 Detail

      • getSetValues

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

        protected java.lang.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