com.ibm.commerce.condition

Interface Evaluator

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      Copyright.
    • Method Detail

      • evaluate

        boolean evaluate(java.lang.String variable,
                         java.lang.String operator,
                         java.lang.String value,
                         SimpleCondition.Qualifier[] qualifiers)
        This method must be implemented to evaluate simple conditions. The evaluate method of the SimpleCondition class will invoke this method to evaluate the condition.
        Parameters:
        variable - Variable name.
        operator - Operator.
        value - Value.
        qualifiers - An array of qualifier objects.
        Returns:
        true if the condition evaluates to true.
      • evaluate

        boolean evaluate(java.lang.String name,
                         OpenCondition.Parameter[] parameters)
        This method must be implemented to evaluate open conditions. The evaluate method of the OpenCondition class will invoke this method to evaluate the condition.
        Parameters:
        name - Name of the open condition.
        parameters - An array of parameter objects.
        Returns:
        true if the condition evaluates to true.