Interface IRangeRestriction


  • public interface IRangeRestriction
    Optional filter to restrict values of a GUIVariable.
    Author:
    El-Sharkawy
    • Method Detail

      • appliesTo

        boolean appliesTo​(IDecisionVariable variable)
        Specifies which variables are restricted by this filter.
        Parameters:
        variable - A variable for which a GUIVariable shall be generated.
        Returns:
        true if the values of this variables shall be filtered, false if all assignable filters shall be presented to the user.
      • filterValue

        boolean filterValue​(java.lang.Object value,
                            java.lang.String label)
        Specifies whether a given value should be filtered or not.
        Parameters:
        value - Value.getValue() of possible value, which may be filtered.
        label - Optional parameter for a displayable label
        Returns:
        true value should be omitted, false keep value.