com.ibm.commerce.condition
Interface Evaluator

All Known Subinterfaces:
CampaignInitiativeEvaluateCmd, CheckCurrentUserInMemberGroupCmd, CheckUserInMemberGroupCmd

public interface Evaluator

This interface must be implemented to evaluate all the possible simple and open conditions in your boolean expression.


Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Method Summary
 boolean evaluate(java.lang.String name, OpenCondition.Parameter[] parameters)
          This method must be implemented to evaluate open conditions.
 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.
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.
Method Detail

evaluate

public 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.

evaluate

public 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.